Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-apple-pay-api

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-apple-pay-api - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc