The Provision API is used to enable in-app push provisioning for Apple Pay and Google Pay. Please also see this help center article on obtaining the necessary entitlements from Apple and Google.
Note: API is only operational in live mode.
Sample Code available here:
Apple Pay: GitHub - solidfi/ios-iap: iOS In App Push Provisioning Sample
Google Pay: GitHub - solidfi/android-iap: Android In App Push Provisioning Sample
Note: The header sd-device-id is optional.
ENDPOINT
- POST /v1/card/:id/provision
Note: The header sd-device-id is optional.
APPLE PAY REQUEST
- {
- "wallet": "applePay",
- "applepay": {
- "deviceCert": "<apple-digitial-cert>",
- "nonceSignature": "<nonce-signature>",
- "nonce": "<nonce>"
- }
- }
APPLE PAY RESPONSE
- {
- "wallet": "applepay",
- "applepay": {
- "paymentAccountReference": "<account-ref>",
- "activationData": "<activation-data>",
- "encryptedPassData": "<pass-data>",
- "ephemeralPublicKey": "<public-key>"
- }
- }
GOOGLE PAY REQUEST
- {
- "wallet": "googlePay",
- "googlePay": {
- "clientCustomerId": "",
- "deviceId": ""
- }
- }
GOOGLE PAY RESPONSE
- {
- "wallet": "googlepay",
- "googlepay": {
- "paymentAccountReference": "",
- "opaquePaymentCard": ""
- }
- }