rn-apple-pay-api
Advanced tools
Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "rn-apple-pay-api", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "A full functional Apple Pay package for React Native", | ||
@@ -5,0 +5,0 @@ "main": "index.tsx", |
@@ -52,3 +52,3 @@ # **rn-apple-pay-api** | ||
###Usage | ||
### Usage | ||
@@ -88,2 +88,25 @@ #### Import and Use the Module | ||
### Api payload for backend | ||
```javascript | ||
{ | ||
type: "applepay"; // Always "applepay" | ||
token_data: { | ||
version: "EC_v1"; // e.g., "EC_v1" generated by ApplePay | ||
data: "string"; // Decrypted data generated by ApplePay | ||
signature: "string"; // Decrypted signature generated by ApplePay | ||
header: { | ||
ephemeralPublicKey: "string"; // Public key generated by ApplePay | ||
publicKeyHash: "string"; // Public key hash generated by ApplePay | ||
transactionId: "string"; // Transaction ID generated by ApplePay | ||
} | ||
} | ||
data: { | ||
("daat"); | ||
} // Represents `extraData`, could be anything | ||
isRejectApi: boolean; // Indicates whether this is a reject API optional if you want to check reject case | ||
txId: string; // Transaction ID generated by ApplePay | ||
} | ||
``` | ||
### Key Functions Used: | ||
@@ -222,3 +245,25 @@ | ||
- **Data Type**: `string` | ||
- **Your Backend API payload must be this** : | ||
```javascript | ||
{ | ||
type: "applepay"; // Always "applepay" | ||
token_data: { | ||
version: "EC_v1"; // e.g., "EC_v1" generated by ApplePay | ||
data: "string"; // Decrypted data generated by ApplePay | ||
signature: "string"; // Decrypted signature generated by ApplePay | ||
header: { | ||
ephemeralPublicKey: "string"; // Public key generated by ApplePay | ||
publicKeyHash: "string"; // Public key hash generated by ApplePay | ||
transactionId: "string"; // Transaction ID generated by ApplePay | ||
} | ||
} | ||
data: { | ||
("daat"); | ||
} // Represents `extraData`, could be anything | ||
isRejectApi: boolean; // Indicates whether this is a reject API optional if you want to check reject case | ||
txId: string; // Transaction ID generated by ApplePay | ||
} | ||
``` | ||
### 2.11 `noApi` | ||
@@ -456,2 +501,5 @@ | ||
6. **What if I don't add the merchant ID?** | ||
Without a merchant ID, Apple Pay will not work, so ensure you add a valid merchant ID. | ||
### 6. References | ||
@@ -458,0 +506,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161506
520