Apple Pay Prerequisites

  1. Create a Merchant ID.

    1. Click on Identifiers.

    2. Click on the plus sign next to Identifiers.

    3. Choose Merchant IDs and click Continue

    4. Follow the instructions to Register a Merchant ID.

    5. Register your domain for Apple Pay on the Web.

      1. If you are not using Apple Pay on the Web, skip this step.

      2. On Apple Developer Page, under the list of merchants, click on the one you just created.

      3. Scroll down to Merchant Domains and click Add Domain.

      4. Follow the instructions to register your domain.

    6. Generate Merchant ID Certificate.

      1. Go back to Apple Developer Page and under the list of merchants, click on the one you just created.

      2. Under Apple Pay Merchant Identity Certificate, click on Create Certificate.

      3. Follow the instructions to create a Merchant Identity Certificate

    7. Contact Cardknox

      1. Submit the Merchant Identity Certificate and request a Certificate Signing Request (CSR) by clicking here.

      2. Once you receive your CSR file, continue to the next step.

    8. Create an Apple Pay Payment Processing Certificate.

      1. Go back to Apple Developer Page and under the list of merchants, click on the one you just created.

      2. Under Apple Pay Payment Processing Certificate, click on Create Certificate.

      3. Click on Choose File, select CSR file and continue.

    9. You are now ready to process Apple Pay transactions!

FAQs

Q: What Apple Pay related fields are necessary to be sent on a gateway transaction request? A:

  1. xCardNum containing a base-64 encoded ApplePay encrypted token block (paymentData.data)

{ "paymentData": { "version": "EC_v1", "data":
"nts4o1EdIF9GA7Yy3GbdJamkPJNu66nMtPBk6hcp4N4/12v7LrEf/xsaFE5NRH9jEMQ93KJME2f9ZnQo9rRNK0ZLwYEQ7mynlsRvQY1gtvgEAhZMarGfOrBFSLIS5gC3tWM4hRn+ELfu9U3vv3sg+h4Ci611TeFvwZK5E4tbQ7Q6V66kN2sJSGjGcqzCoao6WXCOHhyhWy53c24OqK6Bz77RGhM+PtMfBNGREKzwKATnS1PHhA1mPUGysBIUWc2qWNRDxVm0XqlH/aBndQankLNbUetWFNHrJDhRsiEvdVwIZfUG2E+HtkQLV80Q2OCcnSmNSl/uoLCetvd7zM9w0OUXGUQ3qP/LvtAiyUXJBDZ8TUQVyNV/qac9zsjHIDvP2EiwSgdJXO+ns1s=",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d3274d757b49", "applicationData": null }, "paymentMethod": { "displayName": "MasterCard 0492", "network": "MasterCard", "type": "credit" }, "transactionIdentifier": "0969A45481176C0E86F6AD43914DE68E41D33CE95DB1E1169D7CD3274D757B49" } }
  1. xDigitalWalletType set to “ApplePay”

Q: Can a POST or GET be used interchangeably to submit the request?

A: No, due to the size of the data, this request must be submitted to Cardknox Gateway via a POST.

Q: I received an error “Invalid payment data format“ on the transaction response. What might be the issue?

A: The Apple Pay payload in the xCardNum field was not a valid base-64 block.

Q: I received an error “Transaction amount does not match the amount provided“ on the transaction response. What might be the issue?

A: The amount sent in via the xAmount parameter does not match the amount retrieved from the payload provided by Apple Pay.

Q: I received error “PaymentDataType <?> not supported for ApplePay“ on the transaction response. What might be the issue?

A: We currently only support 3DSecure data type. This covers all areas aside from China.

Q: How can I be sure that an Apple Pay transaction is secure?

A: Cardknox will validate the signature on the Apple Pay request to ensure that the request is properly signed using Apple Pay certificates and that the request has not been tampered with. If this validation fails, the transaction will be rejected.

Q: What will the xEntryMethod be for an Apple Pay transaction?

A: The xEntryMethod will be set to digital wallet.

Last updated