#colman_docs
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1248008775374213227
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Hello
You want to use the pending_setup_intent in this case to collect the payment method
That SetupIntent has a client secret just like with a PaymentIntent
Thanks for the quick response.
But im no sure where to use the pending_setup_intent.
Is it when creating the subscription - using stripe.client.subscriptions.create ? or just before creating it?
When you create the Subscription you want to expand pending_setup_intent. You can then get the SetupIntent's client secret after the Subscription is created and pass that client secret to your frontend to be used to confirm the SetupIntent (via confirmSetup() ) which collects the payment method.
Oh right.
Thanks ๐