#thiagolaitz_api
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/1253358373571788911
📝 Have more to share? Add details, code, screenshots, videos, etc. below.
Not sure I understand the question. Can you further explain what you mean by I don´t know how to create a checkout session setting a specific payment method?
Sorry, I mean payment ID
for each card you register using checkout with setup mode, you get a payment id
Oh so you want to create a checkout session and pass a payment method id to it to prefill for payment?
exactly, is it possible ?
by default it uses the last payment method id the user registered, I would like to let the user choose between all registered cards
hmm, so even if I use the checkout with setup mode, I won´t be allowed to use it later ?
I know it works for the last registered card
For example: OpenAI uses stripe and have an interface like this:
but looking at the button "set as default" they probably just set it as default ( the workaround I mentioned)
I'll try to do this way, if it doesn't work, I'll let you know! Thank you!
Yep you'd need to build the page yourself that sets card as the default