You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update package.json version to 0.1.7
* feat: add Google Wallet token management methods
- add resumeAddCardToGoogleWallet() method for resuming card provisioning using existing token reference ID
- add listTokens() method to retrieve all tokens stored in Google Wallet
- add AndroidResumeCardData and TokenInfo types for new functionality
- update README.md with documentation for new methods
These methods provide better token lifecycle management and support for existing card tokens in Google Wallet integration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* feat(android): add resumeAddCardToGoogleWallet example code
* feat(types): rename TokenInfo fields for cross-platform compatibility
* feat: add stub for listTokens on iOS, returning an empty array
* feat: add getDisplayName to addCardToGoogleWallet
---------
Co-authored-by: os-botify[bot] <140437396+os-botify[bot]@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Here you can find data elements used in the library, essential to work with Goog
123
123
-**Ephemeral Public Key** - a key used by elliptic curve cryptography (ECC) (Base 64 encoded).
124
124
125
125
# API Reference
126
-
The library offers five functions for seamless integration and use of the Apple Wallet and Google Wallet APIs. Additionally, it includes one listener that informs when the added card has been activated. Below, these functions are described along with the data types involved.
126
+
The library offers seven functions for seamless integration and use of the Apple Wallet and Google Wallet APIs. Additionally, it includes one listener that informs when the added card has been activated. Below, these functions are described along with the data types involved.
127
127
128
128
## Functions
129
129
@@ -134,6 +134,8 @@ The library offers five functions for seamless integration and use of the Apple
134
134
|**getCardStatusBySuffix**| Retrieves the current status of a card in the wallet. |`lastDigits: string`<br>(The last few digits of the card number) |`CardStatus`| ✅ | ✅ |
135
135
|**getCardStatusByIdentifier**| Returns the state of a card based on a platform-specific identifier. On Android, it's `Token Reference ID` and on iOS, it's `Primary Account Identifier`. |`identifier: string`,<br>`tsp: string`|`CardStatus`| ✅ | ✅ |
136
136
|**addCardToGoogleWallet**| Initiates native Push Provisioning flow for adding a card to the Google Wallet. |`data`: `AndroidCardData`|`TokenizationStatus`| ❌ | ✅ |
137
+
|**resumeAddCardToGoogleWallet**| Resumes the Push Provisioning flow for adding a card to the Google Wallet using existing token reference ID. |`data`: `AndroidResumeCardData`|`TokenizationStatus`| ❌ | ✅ |
138
+
|**listTokens**| Lists all tokens currently stored in the Google Wallet. | None |`TokenInfo[]`| ❌ | ✅ |
137
139
|**addCardToAppleWallet**| Initiates native Push Provisioning flow for adding a card to the Apple Wallet. |`data`: `IOSCardData`,<br>`issuerEncrypt-`<br>`PayloadCallback: IOSIssuerCallback`|`void`| ✅ | ❌ |
138
140
139
141
@@ -143,11 +145,13 @@ The library offers five functions for seamless integration and use of the Apple
143
145
|------|-------------|--------|
144
146
|**AndroidWalletData**| Specific information for Android devices required for wallet transactions. |`deviceID: string`,<br>`walletAccountID: string`|
145
147
|**AndroidCardData**| Data related to a card that is to be added on Android platform wallets. |`network: string`,<br>`opaquePaymentCard: string`,<br>`cardHolderName: string`,<br>`lastDigits: string`,<br>`userAddress: UserAddress`|
148
+
|**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`|
146
149
|**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`|
147
150
|**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`|
148
151
|**onCardActivatedPayload**| Data used by listener to notice when a card’s status changes. |`tokenId: string`,<br> `actionStatus: 'activated' \| 'canceled'`<br> |
149
152
|**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`|
150
153
|**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`|
154
+
|**TokenInfo**| Information about a token stored in Google Wallet. |`identifier: string`,<br>`lastDigits: string`,<br>`tokenState: number`|
0 commit comments