#tomip_save-paymentmethod-no-charge

1 messages ยท Page 1 of 1 (latest)

supple turretBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1386652571879608412

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

high mason
#

HI ๐Ÿ‘‹

You should use the Payment Element. This element is used to collect payment method details and can be used to just save the payment methond.

kindred zodiac
#

Okey, that's great, that confirms what I thought.
How do I create it when I don't have a client secret?

high mason
#

you should be using a Setup Intent even when you are using a customer session

#

so you should have the client secret from the Setup Intent

kindred zodiac
#

Oh, that's probably it. I need to expand the session with setup intent and get the client_secret from there

high mason
#

It is specifically for saving a payment method without charging a customer

kindred zodiac
#

Thank you for that link, I must have missed it!

#

And thank you for such quick response!

high mason
#

Sure thing! Happy to help ๐Ÿ™‚