Provision Card to Apple Pay
POST/api/cards/:cardId/provision/apple-pay
Generate the encrypted payload required to add a card to Apple Pay via in-app push provisioning.
Call this endpoint from your partner app in response to the PassKit
PKAddPaymentPassViewController delegate callback
generateRequestWithCertificateChain:nonce:nonceSignature:completionHandler:.
Forward the certChain, nonce, and nonceSignature values supplied by
PassKit to this endpoint, then pass the response fields back to the
PassKit completion handler as the corresponding fields of
PKAddPaymentPassRequest.
Refer to the seriesId field on the card resource for the value to use
as primaryAccountIdentifier, and to cardholderName for the value to
use as the cardholder name.
Request
Responses
- 200
- 400
- 403
- 503
Successful operation
APPLE_PAY_PAYLOAD_INVALID
The supplied certChain, nonce, or nonceSignature was rejected
by the upstream provisioning service.
FORBIDDEN The card does not exist or the caller lacks permission to provision it.
PAYMENT_BRIDGE_ERROR The upstream provisioning service is unavailable or returned an unexpected error. Safe to retry.