Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Setting up Apple Pay

JaymeP edited this page Feb 10, 2022 · 3 revisions

This procedure creates the UI and integration for Stripe's Apple Pay, Google Pay, and Pay Now buttons.

  1. Follow all the steps in the Stripe documentation for React. This will add the Stripe package to the UI, check if the user has a payment method on the device, and render the appropriate button.
  2. When you get to Step 4, call the /create-payment-intent API endpoint with the user's donationAmount to get the clientSecret back. The clientSecret is sent back to the client to securely complete the payment process instead of the entire PaymentIntent object.
  3. In Step 5, use the clientSecret received in Step 4 to complete the payment.
  4. Follow the remaining steps in the Stripe documentation.