@expensify/react-native-wallet 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/android/src/main/java/com/expensify/wallet/WalletModule.kt +1 -1
- package/ios/WalletManager.swift +3 -3
- package/lib/typescript/src/NativeWallet.d.ts +1 -1
- package/lib/typescript/src/NativeWallet.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/NativeWallet.ts +1 -1
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ The library offers seven functions for seamless integration and use of the Apple
|
|
|
193
193
|
| **AndroidResumeCardData** | Simplified data structure for resuming card addition to Google Wallet using existing token reference ID. | `network: string`,<br>`tokenReferenceID: string`,<br>`cardHolderName?: string`,<br>`lastDigits?: string` |
|
|
194
194
|
| **UserAddress** | Structured address used for cardholder verification. | `name: string`,<br>`addressOne: string`,<br>`addressTwo: string`,<br>`city: string`,<br>`administrativeArea: string`,<br>`countryCode: string`,<br>`postalCode: string`,<br>`phoneNumber: string` |
|
|
195
195
|
| **IOSCardData** | Data related to a card that is to be added on iOS platform. | `network: string`,<br>`activationData: string`,<br>`encryptedPassData: string`,<br>`ephemeralPublicKey: string`,<br>`cardHolderTitle: string`,<br>`cardHolderName: string`,<br>`lastDigits: string`,<br>`cardDescription: string`,<br>`cardDescriptionComment: string` |
|
|
196
|
-
| **onCardActivatedPayload** | Data used by listener to notice when a card
|
|
196
|
+
| **onCardActivatedPayload** | Data used by listener to notice when a card's status changes. | `tokenId: string`,<br> `status: 'activated' \| 'canceled'`<br> |
|
|
197
197
|
| **IOSIssuerCallback** | This callback is invoked with a nonce, its signature, and a certificate array obtained from Apple. It is expected that you will forward these details to your server or the card issuer's API to securely encrypt the payload required for adding cards to the Apple Wallet. | `(nonce: string, nonceSignature: string, certificate: string[]) => IOSEncryptPayload` |
|
|
198
198
|
| **IOSEncryptPayload** | An object containing the necessary elements to complete the addition of a card to Apple Wallet. | `encryptedPassData: string`,<br>`activationData: string`,<br>`ephemeralPublicKey: string` |
|
|
199
199
|
| **TokenInfo** | Information about a token stored in Google Wallet. | `identifier: string`,<br>`lastDigits: string`,<br>`tokenState: number` |
|
|
@@ -75,7 +75,7 @@ class WalletModule internal constructor(context: ReactApplicationContext) :
|
|
|
75
75
|
sendEvent(
|
|
76
76
|
context,
|
|
77
77
|
OnCardActivatedEvent.NAME,
|
|
78
|
-
OnCardActivatedEvent("
|
|
78
|
+
OnCardActivatedEvent("activated", tokenId).toMap()
|
|
79
79
|
)
|
|
80
80
|
pendingPushTokenizePromise?.resolve(TokenizationStatus.SUCCESS.code)
|
|
81
81
|
}
|
package/ios/WalletManager.swift
CHANGED
|
@@ -69,8 +69,8 @@ open class WalletManager: UIViewController {
|
|
|
69
69
|
for pass in passes {
|
|
70
70
|
if pass.secureElementPass?.passActivationState == .activated {
|
|
71
71
|
delegate?.sendEvent(name: Event.onCardActivated.rawValue, result: [
|
|
72
|
-
"
|
|
73
|
-
"
|
|
72
|
+
"status": "activated",
|
|
73
|
+
"tokenId": pass.serialNumber
|
|
74
74
|
]);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -253,7 +253,7 @@ extension WalletManager: PKAddPaymentPassViewControllerDelegate {
|
|
|
253
253
|
if error != nil {
|
|
254
254
|
self.logInfo(message: "Error: \(errorMessage)")
|
|
255
255
|
delegate?.sendEvent(name: Event.onCardActivated.rawValue, result: [
|
|
256
|
-
"
|
|
256
|
+
"status": "canceled"
|
|
257
257
|
]);
|
|
258
258
|
}
|
|
259
259
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeWallet.d.ts","sourceRoot":"","sources":["../../../src/NativeWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,cAAc,CAAC;AAG9C,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,K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,QAAA,MAAM,YAAY,mCAAmC,CAAC;AAItD,QAAA,IAAI,MAAM,EAAE,IAAI,GAAG,SAAS,CAAC;AAS7B,eAAe,MAAM,CAAC;AACtB,OAAO,EAAC,YAAY,EAAC,CAAC;AACtB,YAAY,EACV,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,QAAQ,EACR,qBAAqB,EACrB,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,GACV,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expensify/react-native-wallet",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "A React Native module designed for seamless integration of Card Push Provisioning into Apple Wallet and Google Wallet, enabling easy and secure addition of payment cards directly from your application.",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index",
|