#bayorwor
1 messages · Page 1 of 1 (latest)
Hi there!
Hii @marsh crystal
Both these flow should work, but there's an even simpler flow:
- first create the subscription
- then retrieve the
latest_invoice.payment_intentcreated by the subscription - and use this to collect payment with the Payment Element
Or even simpler: use Checkout Session so it handles all of this for you.
Ok thanks, any links or resources to the docs for the suggestions?
What I described is our recommended flow, that you can see here: https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements
OK thanks
Happy to help 🙂
A pleasure
And here's the documentaiton on Checkout Session, which is the simplest approach: https://stripe.com/docs/payments/ach-debit/accept-a-payment?platform=web&ui=checkout