#thomas_58040
1 messages · Page 1 of 1 (latest)
Hi there
Hi
Creating PaymentIntents directly are for creating your own custom payment flow. Pricing table is an easier way to create Checkout Sessions which are our hosted payment flow.
You can also create Checkout Sessions yourself if you want to use Stripe Checkout without using a Pricing Table
I see. Thank you, I'm super new to this. So creating a payment flow = 'creating a checkout session, capturing payment information, and submitting the request"? And a pricing table will handle all these for me, unlike using the intents API. However both will require me to handle async payment events like "customer.subscription.created" with my own backened code. Have I understood this correctly?
Yep pretty much
Although, I guess in both cases, "submitting the request" is handled on stripes infra since none of that happens on my site.
The "pretty much" is a little scary 🙂 what did I get wrong?
Nothing you said is incorrect. It just is a bit more complicated -- I think the better way to look at it is as you stated: with Stripe Checkout we handle the entire payment flow for you, but you do need to set up a Webhook handler for fulfillment.