At a high level, this is what provisioning a card to Apple Wallet entails:Documentation Index
Fetch the complete documentation index at: https://docs.treasuryprime.com/llms.txt
Use this file to discover all available pages before exploring further.
- The user taps the Add to Apple Wallet button.
- Apple Wallet prepares and returns the public certificates, nonce, and nonce signature to your app.
- Your app passes the public certificates, nonce, and nonce signature to Treasury Prime, which implements the issuer host responsibilities for you.
- A payment data payload is prepared and encrypted then returned to your app along with the ephemeral public key and activation data.
- Your app passes the encrypted payment data payload, ephemeral public key, and activation data to Apple Wallet.
- Apple Wallet processes the request.
This guide uses the following endpoints
/card/card/:card_id/digital_wallet/apple_pay
To provision a card, you must do these things
1. Look up cards
The first step in provisioning a card for a digital wallet is looking up which cards a user has. Filter available cards by the person whose device the card is being provisioned for.2. Add card to wallet
After the user has clicked the Add to Wallet button, your application will receive a payload you must pass to Treasury Prime, at thecard/:card_id/digital_wallet_token/apple_pay endpoint. For this example, we will tokenize card_11gn4cvm4c7t6p.