Skip to main content

Setup Apple Pay

Compatible with iOS 11 and later.

With Apple Pay in your application, you can allow users to securely pay with nearly all credit and debit cards.

info

Users can see Apple Pay as a payment method in the following scenarios:

  • When using a device compatible with Apple Pay.
  • If a user is located in a region where Apple Pay is available.
  • If a user already has Apple Pay set up on their device.

To enable Apple Pay in your app and start accepting payments, you must first set up the integration. To setup the integration, do the following:

Merchant Identifier

  1. Create a new Merchant ID. For more details, see Apple Developer Account Help.
  2. Contact Dojo for a signing key.
  3. Generate a payment processing certificate for the Merchant ID you created using the signing key. To do so, go to the Apple developer portal and under Certificates, Identifiers, and Profiles > Create a New Certificate > Upload a Certificate Signing Request, upload CertificateSigningRequest.certSigningRequest that you received from Dojo.
  4. Download the payment processing certificate (with extension .cer) and send that certificate to Dojo.
  5. Using the following code, set the merchantIdentifier property with your Merchant ID you created in Step 1.
capture-apple-pay.swift
loading...
info

Known limitation: Our SDK does not support Amex cards with Apple Pay.

Testing Apple Pay

To enable test cards for Apple Pay, you must have an Apple Sandbox Tester Account. This lets you add test cards to your Apple Wallet.

See Apple's Sandbox Testing Documentation to set up your Sandbox Tester Account and navigate to Test Cards for Apps and the Web to see the full list of supported test cards by Apple.