#colman_docs

1 messages ยท Page 1 of 1 (latest)

thin novaBOT
#

๐Ÿ‘‹ 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.

unborn shell
#

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

silk flax
#

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?

unborn shell
#

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.

silk flax
#

Oh right.

Thanks ๐Ÿ™