#birdy247_api

1 messages ยท Page 1 of 1 (latest)

jade 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/1237857723626946641

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

gray tapir
#

Hello

light acorn
#

Hi

gray tapir
#

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?

light acorn
#

charge immediatley

#

well, we actually create 3 payment intents and charge them immediatley

gray tapir
#

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

#

Then, if 3DS is required, the SetupIntent will move to requires_action

light acorn
#

Ok, so then if it does, we pass the secret back to the frontend and confirm it?

gray tapir
#

Yep

#

Beat me to it

light acorn
#

Do we need to call confirmSetupIntent on frontend?

gray tapir
#

Yep

light acorn
#

If it requires action?

gray tapir
#

Yes

#

That will then handle 3DS client-side

light acorn
#

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?

gray tapir
#

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.

light acorn
#

Great

#

Thanks for your help

#

p.s. Has your discord process change? Is this the right way to ask developer related questions now?

gray tapir
#

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.

light acorn
#

Impressiv

#

Out of interest, do develpers take it in turns to answer these forum questions or are you dedicated to supporting people like us?

gray tapir
#

My team are all developers and we take turns staffing this channel to answer questions.

light acorn
#

๐Ÿ‘ bravo, its a great approach

gray tapir
#

โค๏ธ

light acorn
#

Thanks for your help. Have a good evening

gray tapir
#

You too!