Set up Apple Pay through the JavaScript SDK approach
Learn how to set up Apple Pay using Zuora's JavaScript SDK, including domain registration, client and server-side integration, and testing.
To integrate with Zuora's JavaScript SDK for Apple Pay setup, complete all of the following tasks:
- Ensure you complete prerequisite tasks before the integration .
- Register your domains with Apple Pay .
- Implement the client-side SDK integration .
- Implement the server-side API integration .
- Perform integration testing .
By using Zuora's JavaScript SDK integration, you do not need to create your own Apple Pay certificate for your web integration, because you can process payments through Zuora's Apple Pay certificate.
This feature is in the Early Adopter phase. We are actively soliciting feedback from a small set of early adopters.
-
Prerequisites
Understand guidelines and requirements from Apple:
-
Ensure that you have understood Apple guidelines for incorporating Apple Pay into your websites.
-
Your server must meet some requirements for secure communications with Apple Pay. See Apple Pay documentation for details.
-
-
Turn on the Payment Form feature in Zuora: The JavaScript SDK integration utilizes the publishable key from the Payment Form feature for authentication. This integration supports embedding the Apple Pay button within an iframe hosted by Zuora. To enable Payment Form on your tenant, see the "Before you start" section in Configure payment forms .
-
Ensure that the requirements for the gateway are met:
-
Ensure that your gateway instance in Zuora supports implementing Apple Pay integration through the JavaScript SDK, and you have signed up for a merchant account for the payment gateway. You can find gateway integrations that support Apple Pay integration through SDK at the beginning of this article.
-
If you plan to implement Apple Pay on the Chase Orbital gateway and you have an existing Chase Orbital gateway account, make sure it is using the Salem Platform. See Chase Paymentech (Orbital) Gateway for more information.
-
If you plan to implement Apple Pay on the Stripe v2 gateway, contact Stripe for gated access to the Processing Apple Pay Decrypted Tokens API.
-
To use Apple Pay, you must register your web domains that will show the Apple Pay button, including top-level domains and sub-domains. You need to register the domains used in both production and testing. Note that Apple Pay does not verify domains in test environments.