In order to test the entire Apple Pay user flow, use a device that supports Apple Pay. To test Apple Pay on the web, use the Safari browser.

In the sandbox environment, Braintree accepts Apple Pay Sandbox test cards from the device. Using these test cards requires that your device is signed into an iCloud sandbox tester account. Please note that the Braintree sandbox environment returns a payment method nonce with dummy data ("Jane Doe"), even when decryption is successful. You can simulate server behaviors by using test amounts on your transactions and test nonces.

In our production environment, the payment data is decrypted with an Apple Pay certificate that is securely stored on our servers. You should expect to see the same device account number (DPAN) in Wallet (formerly Passbook) and in the Braintree Control Panel.

If Apple Pay tokenization fails during development, it is likely caused by a certificate mismatch. You can determine which certificate was used for encryption based on the PKPaymentToken (payment.token.paymentData header.publicKeyHash field) on iOS or ApplePayPaymentToken (payment.token.paymentData header.publicKeyHash field) on the web.

Go live

  • Run a few real transactions to ensure that you are able to process Apple Pay for all supported card types.
  • Apple Pay requires coordination from acquiring banks, issuing banks, and card networks. Please email us if your live transactions are declined.