#tomip_save-paymentmethod-no-charge
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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.
Okey, that's great, that confirms what I thought.
How do I create it when I don't have a client secret?
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
Oh, that's probably it. I need to expand the session with setup intent and get the client_secret from there
We document this flow pretty clearly in this integration guide: https://docs.stripe.com/payments/save-and-reuse
It is specifically for saving a payment method without charging a customer
Thank you for that link, I must have missed it!
And thank you for such quick response!
Sure thing! Happy to help ๐