#birdy247_api
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/1237857723626946641
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Hi
Are you trying to charge immediately here?
Or attach the PaymentMethod and then charge later on when your customer is no longer in your flow?
charge immediatley
well, we actually create 3 payment intents and charge them immediatley
Ah okay well in that case you should use a SetupIntent instead here to attach the PaymentMethod to the Customer. This allows you to handle 3DS if it is required
So basically instead of passing the PaymentMethod ID to the Customer on Customer creation, you create a SetupIntent (https://docs.stripe.com/api/setup_intents/create) and pass the Customer ID, the PaymentMethod ID, and confirm: true.
Then, if 3DS is required, the SetupIntent will move to requires_action
Ok, so then if it does, we pass the secret back to the frontend and confirm it?
Do we need to call confirmSetupIntent on frontend?
Yep
If it requires action?
And would we need to do anything with the setup intent to create the payment intents? Or we can just use the customer ID as we do now?
Nope you don't need to do anything different for the PaymentIntents. Once the SetupIntent is successfully confirmed it will attach the PaymentMethod to the Customer and you just pass the Customer ID and the PaymentMethod ID to the PaymentIntent(s) and confirm them.
You can test this all out in test mode with our 3DS cards: https://docs.stripe.com/testing#regulatory-cards
Great
Thanks for your help
p.s. Has your discord process change? Is this the right way to ask developer related questions now?
Happy to help
And yep, this is the correct way.
We added a form at the beginning to streamline questions and better help folks.
But you are in the right place.
Impressiv
Out of interest, do develpers take it in turns to answer these forum questions or are you dedicated to supporting people like us?
My team are all developers and we take turns staffing this channel to answer questions.
๐ bravo, its a great approach
โค๏ธ
Thanks for your help. Have a good evening
You too!