Push provisioning
Push provisioning allows cardholders to add their card to a digital wallet at the tap of a button instead of having to manually type in the card details.
Apple Pay
In-app push provisioning
Prerequisites
Enabling push provisioning to Apple Pay wallets in your iOS application requires an Apple Pay Entitlement to be issued by Apple for your application. Please reach out to support@increase.com and we will guide you through the process and any other setup needed.
Push provisioning flow
-
Add a
AddPassToWalletButtonto a view. Please refer to Apple’s documentation on guidelines for proper presentation of the button. -
When the button is tapped, present a
PKAddPaymentPassViewControllerto the user, configured for the card:
-
Implement the
PKAddPaymentPassViewControllerDelegateprotocol. In thegenerateRequestWithCertificateChainmethod, pass the certificates, nonce and nonce signature to your servers as Base64-encoded data. -
Implement an endpoint that receives the certificates, nonce and nonce signature and relays it to Increase’s API at
POST /cards/:card_id/push_provisionand passes the data back to your application:
- In the
generateRequestWithCertificateChainmethod, Base64-decode the data elements to construct aPKAddPaymentPassRequest:
- Wait for the
didFinishAddingdelegate method to be called to determine the outcome of the push provisioning flow. As the flow progresses, a Digital Wallet Token will be created and receive updates.