Backend source code used for the following livestreams:
- Collect payments on Android with Google Pay and Stripe
- Collect payments on Android with Google Pay and Stripe’s React Native SDK
npm i
mv .env.example .env
- Add your Stripe webhook signing secret, publishable and secret key from your Stripe dashboard to the
.env
file npm start
to run the server
Running curl localhost:3000/payment_sheet
should return you an object with an ephemeral key, PaymentIntent client secret, customer ID and publishable key.