Introducing the Chargebee CLI

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:

  1. First, you need to enable Apple Pay as a payment method in your payment gateway. We currently support this through Stripe and Braintree.
  2. Contact support to enable Apple Pay as a payment method for your Chargebee site.
  3. Next, set up an integration with Apple Pay on a signup or checkout page on your site using Stripe or Braintree JavaScript.
  4. When a customer chooses to pay via Apple Pay, they will receive a notification on their iOS device.
  5. The customer can authorize the payment on their iOS device; the payment gateway then returns a temporary token.
  6. This temporary token should be passed to Chargebee via API, through the following APIs: