On This Page
Integrating Apple Pay into Your System
This section describes how to integrate Apple Pay into your iOS app or website. The
integration tasks are organized into three parts. The second part provides separate steps for
the two different decryption models. The third part applies only if you will be supporting
Apple Pay on the web.
You will perform the integration tasks twice: First in your test environment and, after you
validate your test integration, a second time in your production environment.
- Part 1: Set Up Your Apple Developer Account. You will enroll your organization in the Apple Developer Program, create anApple merchant ID, and register it in your developer account.
- Part 2: Create an Apple Pay Payment Processing Certificate. This certificate is associated with your merchant ID, and it is used by Apple Pay servers to encrypt payment data.
- You will generate acertificate signing request(CSR) at the system that will handle Apple Pay payload decryption. ForVDC NABdecryption, you will generate the CSR at theVDC NABGateway Portaluser interface. For merchant decryption, you will generate the CSR at your Apple device.
- You will upload the CSR with the public key to your Apple Developer account and use the CSR to create apayments processing certificatefor your merchant ID and Apple Pay.
- Part 3: Perform Additional Setup for Apple Pay on the Web. If you offer your customers Apple Pay on the web, you will create anApple Pay merchant identity certificate, associate the certificate with your merchant ID, and registereach merchant domainthat will process Apple Pay transactions.
TIP
If you are integrating
Apple Pay with
and
you are experienced in creating Apple Pay payment processing certificates,
you can use the
Quick Integration for the VDC NAB Decryption Method
instead of the detailed steps in this section.VDC NAB
decryptionPart 1: Set Up Your Apple Developer Account
Complete the tasks in this section to
enroll your organization in the Apple Developer program and
register a new Apple merchant ID.
Starting Enrollment in the Apple Developer Program
Enrolling in the Apple Developer program as an organization
enables you to associate multiple developer accounts with your Apple Developer account.
Multiple developer accounts can be beneficial
if you have a large project with a team of developers.
For the first phase of the enrollment process,
you log in to your Apple Developer account
and submit information about your organization to Apple.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to start the enrollment process:
- Launch the Apple Developer app on your device.
- ClickAccount, and sign in with your Apple ID.
- If prompted, review the Apple Developer Agreement and clickAgree.
- ClickEnroll Now, review the program benefits and requirements, and then clickContinue.
- At the prompts, enter your information as the Account Holder.
- At the prompts, enter information about your organization.
RESULT
After Apple verifies your information and approves your enrollment,
it sends you an email that describes the next steps.
Completing Enrollment in the Apple Developer Program
When you receive your approval email from Apple,
you will log in to your Apple Developer account again
and complete the enrollment process.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to complete the enrollment process:
- Launch the Apple Developer app on the device you used to start the enrollment process.
- ClickAccountand sign in with the Apple ID you used to start the enrollment process.
- ClickContinue Your Enrollment, review the terms of the Apple Developer Program License Agreement, and then clickAgree.
- Review the annual membership subscription details and clickSubscribe.
Registering a New Merchant ID in Your Apple Developer Account
Finish setting up your Apple Developer account
by creating and registering a merchant ID for each environment.
A registered merchant ID uniquely identifies you to
Apple Pay as a valid entity that can accept payments.
In order to support multiple environments, such as sandbox and production,
you can create multiple merchant IDs in your Apple Developer account.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to create a merchant ID and to register it in your Apple Developer account:
- Log in to your Apple Developer account.
- In the left navigation panel, selectCertificates, Identifiers & Profiles.
- ClickIdentifiers.
- Click the plus sign (+) on the top left.
- SelectMerchant IDsand clickContinue.
- Enter a merchant description and identifier name.
- ClickContinue.
- Verify that you entered the merchant information correctly.
- ClickRegister.
Part 2: Create an Apple Pay Payment Processing Certificate
Complete the tasks in this section to create an Apple Pay payment processing
certificate. Apple Pay servers use this certificate to encrypt payment data.
Creation of an Apple Pay payment processing certificate consists of two tasks:
- Generating a certificate signing request (CSR).
- Using the CSR to create an Apple Pay payment processing certificate.
IMPORTANT
When you generate a CSR, the sequence of steps you will
perform depends on whether you are integrating
VDC NAB
decryption and merchant decryption.- If you are integratingVDC NABdecryption, you will generate a CSR at theVDC NABGateway Portal. See Generating a CSR for VDC NAB Decryption.
- If you are integrating merchant decryption, you will generate a CSR at your Apple device. See Generating a CSR for Merchant Decryption.
Generating a CSR for VDC NAB Decryption
VDC NAB
DecryptionIMPORTANT
These steps apply to setting up
VDC NAB
decryption only. If you are integrating the merchant
decryption model of Apple Pay into your system, follow the steps in Generating a CSR for Merchant Decryption instead.For
VDC NAB
decryption, you will use your VDC NAB
account in the Gateway Portal
to generate a
certificate signing request (CSR). You will use the Apple Pay Registration page
within the Gateway Portal
.If you do not have an Admin account or an account with write access, contact your
Account Admin,
National Australia Bank
sales engineer, alliance partner, or
technical account manager.- Follow these steps at theVDC NABGateway Portalto generate a CSR:
- Log in to yourVDC NABmerchant account in theGateway Portal.
ADDITIONAL INFORMATION
Production:ADDITIONAL INFORMATION
- In the left navigation panel, selectPayment Configuration.
- ChooseDigital Payment Solutions.
ADDITIONAL INFORMATION
The Digital Payment Solutions page appears. - ClickConfigurefor Apple Pay.
ADDITIONAL INFORMATION
The Apple Pay Registration page appears.ADDITIONAL INFORMATION
This image shows the Apple Pay Registration page in theVDC NABGateway Portal.Figure:
Apple Pay Registration Page in theVDC NABGateway PortalInterface - Enter the Apple merchant ID that you created and registered in your Apple Developer account.
ADDITIONAL INFORMATION
These steps are described in Registering a New Merchant ID in Your Apple Developer Account. This value should match the id you set up with Apple including the "merchant" prefix. - ClickGenerate new certificate signing request.
- Click the download icon next to the key.
- Download the certificate request file (a file with a.certSigningRequestfile extension) to your local machine.
- Use your browser controls to save the file to your local machine.
ADDITIONAL INFORMATION
In the next task, you will upload the CSR file to your Apple Developer account.
Generating a CSR for Merchant Decryption
IMPORTANT
These steps apply to setting up merchant decryption only.
If you are integrating the
VDC NAB
decryption model of Apple Pay into your system, follow the steps in
Generating a CSR for VDC NAB Decryption
instead.For merchant decryption,
you will use your Apple device to generate a certificate signing request (CSR).
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps at your Apple device to generate a CSR:
- Sign in to your Apple Developer account as the Account Holder or as an Admin and selectCertificates, Identifiers & Profiles.
- ClickIdentifiersin the sidebar.
- SelectMerchant IDsand clickContinue.
- Under Identifiers, selectMerchant IDsusing the filter on the top right.
- On the right, select your merchant identifier.
- Under Apple Pay Payment Processing Certificate, clickCreate Certificate.
Creating a Payment Processing Certificate for Your Merchant ID
Using the certificate signing request that you just created,
you will create an Apple payment processing certificate
and associate the certificate with your Apple merchant ID that you created before that.
Those earlier tasks are described in these topics:
Apple Pay uses the payment processing certificate to encrypt the customer's payment information.
This certificate expires every 25 months.
If the certificate expires or is revoked, you can recreate it.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to create a payment processing certificate for your Apple Pay merchant ID:
- Sign in to your Apple Developer account as the Account Holder or as an Admin and selectCertificates, Identifiers & Profiles.
- Upload the CSR file and associate the CSR with your merchant ID.
ADDITIONAL INFORMATION
The CSR contains your Apple merchant ID and a public key that Apple Pay uses to encrypt sensitive payment data.- ClickIdentifiersin the sidebar.
- SelectMerchant IDsusing the filter on the top right.
- On the right, select your merchant ID.
Step Result
If a banner at the top of the page prompts you, you need to accept an agreement. ClickReview Agreementand follow the instructions that appear. - Under Apple Pay Payment Processing Certificate, clickCreate Certificate.
- Create a payment processing certificate and download the certificate to your local machine.
- ClickChoose Fileand select the CSR file that you uploaded.
ADDITIONAL INFORMATION
The CSR file has the filename extension.certSigningRequest. - ClickChoose.
- ClickContinue.
- ClickDownload.
Step Result
The payment processing certificate (a file with the filename extension.cert) appears in your Downloads folder.
- Go to the next task.
- If you offer your customers Apple Pay in a web page, go to Part 3: Perform Additional Setup for Apple Pay on the Web.
- Otherwise, proceed to Validating Your Test Integration.
Part 3: Perform Additional Setup for Apple Pay on the Web
If you develop web pages that support Apple Pay on the Web, your customers can use Apple
Pay to purchase goods and services from within your web page. You can use the same Apple
Pay merchant ID and Apple Pay payment processing certificate as required for Apple Pay
in-app implementations. However, Apple Pay on the Web requires additional set-up tasks
that you perform in your Apple Developer account:
- Creating an Apple Pay merchant identity certificate
- Registering your merchant domains with Apple
If you created multiple merchant ID and payment processing certificate pairs
to support multiple environments, such as sandbox and production,
you must associate each ID-and-certificate pair with a unique merchant identify certificate.
Creating an Apple Pay Merchant Identity Certificate
If you offer your customers Apple Pay in a web page,
you must create an Apple Pay merchant identity certificate and
associate it with your merchant ID.
You need this Transport Layer Security (TLS) certificate
in order to authenticate your sessions with the Apple Pay servers.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to create an Apple Pay merchant identity certificate:
- Log in to your Apple Developer merchant account as an Account Holder or Admin.
- In the left navigation panel, selectCertificates, Identifiers & Profiles.
- Perform these steps for each merchant identity certificate you need to create:
- ClickIdentifiers, and click the plus sign (+) on the top left.
- SelectMerchant IDsand clickContinue.
- Enter the merchant description and identifier name, and then clickContinue.
- ClickRegister.
Registering Your Merchant Domains with Apple
Each merchant domain in your organization that will process Apple Pay transactions
must be registered with Apple.
IMPORTANT
When you perform tasks at the Apple Developer portal,
always refer to official Apple documentation
for the most up-to-date information
.- Follow these steps to register your merchant domains with Apple:
- Log in to your Apple Developer merchant account as an Account Holder or Admin.
- In the left navigation panel, selectCertificates, Identifiers & Profiles.
- Perform these steps for each merchant domain that you registered with Apple:
- ClickIdentifiers, and selectMerchant IDsin the pop-up menu on the top right.
- On the right, select your merchant identifier.
- Under Merchant Domains, clickAdd Domain. Enter the fully qualified name of the domain and clickSave.
- ClickDownload, place the downloaded file in the specified locations, and clickVerify.
- After you add all merchant domains that will process Apple Pay transactions, clickDone.
Verifying the Merchant Domains That You Registered with Apple
- Follow these steps to verify the merchant domains you registered with Apple:
- Log in to your Apple Developer merchant account as an Account Holder or Admin.
- In the left navigation panel, selectCertificates, Identifiers & Profiles.
- Perform these steps for each merchant domain that you registered with Apple:
- ClickIdentifiers, and selectMerchant IDsin the pop-up menu on the top right.
- On the right, select your merchant identifier.
- Under Merchant Domains, clickVerifynext to the domain name.
- Follow the instructions that appear on the screen.
RESULT
You can now proceed to Validating Your Test Integration.
Validating Your Test Integration
Before you integrate Apple Pay into your production environment,
validate your test integration of Apple Pay.
- Follow these steps to validate the integration in your test environment:
- Make sure your system is prepared for end-to-end testing.
ADDITIONAL INFORMATION
- Add test payment cards to the wallet of your Apple sandbox tester account.
ADDITIONAL INFORMATION
Instructions are provided in theSandbox Testingpage on the Apple Developer portal:- Follow the steps in theCreate a Sandbox Tester Accountsection.
ADDITIONAL INFORMATION
Make sure the user account has permissions to use Apple Pay. You will use this account to log in to devices and services. - Follow the steps in theAdding a Test Card Numbersection.
- Using theRESTAPI, send Apple Pay transaction requests to the test endpoints.
ADDITIONAL INFORMATION
Refer to the tasks in Processing Apple Pay Transactions. - Adjust your integration settings as needed until your test transactions complete successfully.
RESULT
You can now proceed to Integrating Apple Pay into Your Production Environment.
Integrating Apple Pay into Your Production Environment
After you validate Apple Pay in your test environment,
you can integrate Apple Pay into your production environment.
- Follow these steps to integrate Apple Pay into your production environment:
- Use your Apple merchant ID to generate a certificate signing request (CSR) and create aproductionApple Pay payment processing certificate.
ADDITIONAL INFORMATION
- If you offer your customers Apple Pay on the Web, perform the additional setup steps for your production environment.
ADDITIONAL INFORMATION
RESULT
You can now proceed to
Processing Apple Pay Transactions.