#hanners_best-practices

1 messages ยท Page 1 of 1 (latest)

thorny robinBOT
#

๐Ÿ‘‹ 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/1347610294058487943

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

dusky nymph
thorny robinBOT
patent wadi
#

Hi, thanks for the links! Seems like the approach we had is similar to the legacy 2 step confirmation. Is there any benefits of using confirmationTokens over using paymentMethodIds?

olive mauve
#

Hi! I'm jumping in for my colleague; just give me a sec to catch up.

olive mauve
#

Ok, so you want to limit card countries?

patent wadi
#

yes, for example, if the currency is myr, to limit to myr credit cards.

olive mauve
#

Gotcha. Then you'll want to do this in two steps as suggested by my colleague.

Is there any benefits of using confirmationTokens over using paymentMethodIds?

Can you tell me more about what this means?

patent wadi
#

The current project has already implemented the card checking using the createPaymentMethod, which is the legacy 2 step confirmation. I am considering if there are any benefits to change to using confirmationTokens instead.

#

And also, we kind of did it the reverse way: create payment intent first, then call createPaymentMethod, then confirmCardPayment. In the docs, seems like it is more secure to collect payment method, passing it to the server, creating payment intent, then passing the secret back to frontend to confirmPayment (with 3DS). Wondering if you have any advice to give us at this point in time, if a refactor is necessary ๐Ÿ˜ฌ

patent wadi
#

Thanks for the help, have to go, do leave any comments if you have any! Any chance of opening this thread the next time I get back?

olive mauve
#

Of course - something urgent came up, I apologize for dropping this.

olive mauve