Stripe Payments JavaScript Course
Project Source Code Stripe Docs Stripe API Reference
- Customer
- Stripe API Reference - Customers
- Core entity within stripe
- Stores all profile, billing and, tax information required to bill a customer for both subscription and one-off invoices
- Setup Intent
- Stripe API Reference - SetupIntents
- Guides you through setting up and saving a customers payment credentials for future payments
- Payment Intent
- Stripe API Reference - PaymentIntents
- A way of collecting payment from a customer
- recommended that you create one payment intent for each order or customer session in your system
- Its possible to reference payment intents later to see the history of the payment attempts for a particular session
- A PaymentIntent transitions through multiple statuses throughout its lifetime as it interfaces with Stripe.js to perform authentication flows and ultimately creates at most one successful charge.
- Steps on payment intent process
- User is ready to pay
- Create a payment intent (server)
- Collect card details (client)
- Submit payment intent and cart to stripe (react)