Skip to content

cdnicoll/stripejs

Repository files navigation

Stripe Payments JavaScript Course

Project Source Code Stripe Docs Stripe API Reference


Notes

  • 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
  • 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
      1. User is ready to pay
      2. Create a payment intent (server)
      3. Collect card details (client)
      4. Submit payment intent and cart to stripe (react)