How do I use Apple Pay as a payment method via API?
Problem Statement
You want to know how to use Apple Pay as a payment method via the API.
Solution
We now support Apple Pay as a payment option. To use Apple Pay via APIs, follow these steps:
- First, you need to enable Apple Pay as a payment method in your payment gateway. We currently support this through Stripe and Braintree.
- Contact support to enable Apple Pay as a payment method for your Chargebee site.
- Next, set up an integration with Apple Pay on a signup or checkout page on your site using Stripe or Braintree JavaScript.
- When a customer chooses to pay via Apple Pay, they will receive a notification on their iOS device.
- The customer can authorize the payment on their iOS device; the payment gateway then returns a temporary token.
- This temporary token should be passed to Chargebee via API, through the following APIs: