Apple Pay Onboarding

Pre-requisites:

You require an Apple developer account to start taking payments via Apple Pay. Sign up on Apple Developer Programlink icon to create an Apple Pay Account. You can skip this step if you already have an account.

Step 1: Apple Pay Account Creation

  1. Sign In to your Apple Developer Account. Navigate to Register Identifier Screen.link icon

  2. Select Merchant Ids Checkbox. Click on Continue. We recommend separate merchant Id for your test environment and live/production environment.

  3. In Register a Merchant Id section, there are 2 input boxes for Description and Identifier

  4. Description: You can specify the purpose of the keys in descriprion. For example: Merchant Ids created for Juspay Sandbox/ Prod

  5. Identifier: Apple recommend using a reverse-domain name style string (i.e., com.domainname.appname). We also recommend adding juspay mid and environment in the identifier. For example: if merchant id is testmid, identifier will be com.testmid.juspay.sandbox

    Please find a reference video for the above flow herelink icon

Step 2: Validate Merchant Domain

Pre-requisites:

You must have a valid SSL certificate (beginning with https) for your domain.

  1. Log in to your Apple Developer account. Navigate to the Identifiers List link iconand select Merchant IDs in the top right dropdown. Select the merchant Id created in the previous Step

  2. Scroll down to Merchant Domains Section and click on Add Domain button

  3. Enter <merchant_domain> as domain and click on Save button

  4. Click Download button and a .txt file will be downloaded in your system

  5. Share this file with internal tech team and get the file hosted on <domain_name>/.well-known/apple-developer-merchantid-domain-association.txt

  6. Once the .txt file is hosted on the mentioned path, click on Verify button

  7. Make sure that the status is Verified.

Step 3: Getting Apple Merchant Id Certificate and Private Key :

  1. Open terminal and create a .csr and .key file using the following command:

    openssl req -out uploadMe.csr -new -newkey rsa:2048 -nodes -keyout certificate_sandbox.key

  2. Enter required details in the prompt. When asked to enter a challenge password, kindly leave it blank and click Enter. A .csr and .key file will be stored in the current directory.

  3. Navigate to Identifiers List link iconand select Merchant IDs in the top right dropdown. Select the merchant Id created in the Step 1

  4. Scroll down to the Apple Pay Merchant Identity Certificate section, click on Create Certificate button

  5. Upload the .csr file you just created from your terminal. If same command is used to generate the file, it will be saved as uploadMe.csr. Click on Continue button

  6. Click on Download button to download .cer file. It will be saved as merchant_id.cer

  7. We need to convert this .cer file to a .pem file. Kindly use the following command in your terminal:

    openssl x509 -inform der -in merchant_id.cer -out certificate_sandbox.pem


    Please find a reference video for the above flow herelink icon

Step 4: Get Apple Payment Processing Certificate:

  1. Navigate to Identifiers List link iconand select Merchant IDs in the top right dropdown. Select the merchant Id created in the Step 1

  2. Scroll down to the Apple Pay Payment processing Certificate section, click on Create Certificate button

  3. Upload the .csr file received from the PG through which apple pay transactions are to be processed

  4. Ensure that the question "Will payments associated with this Merchant ID be processed exclusively in China?" is ticked with the default option (No). Click on Continue Button

  5. Download .cer file.  Share this .cer file with the gateway via email or via uploading on dashboard

All the required files to be entered on Juspay Portal are now generated:

  • Applepay Merchant Identifier/ Id : Step 1.5

  • Applepay Certificate: certificate_sandbox.pem  - Step 3.7. Kindly follow dashboard instruction if this needs to be base 64 encoded or to be uploaded directly as this will differ from gateway to gateway.

  • Apple Pay Private Key: certificate_sandbox.key - Step 3.1. Kindly follow dashboard instruction if this needs to be base 64 encoded or to be uploaded directly as this will differ from gateway to gateway.

  • Apple Pay Display Name: A string of 64 or fewer UTF-8 characters containing the canonical name for your store, suitable for display. This needs to remain a consistent value for the store and shouldn’t contain dynamic values such as incrementing order numbers.

  • Apple Pay Initiative: A predefined value that identifies the e-commerce application making the request. In our case, this value will always be web

Last updated 1 year ago