#ethan-tran_best-practices

1 messages ¡ Page 1 of 1 (latest)

ancient coyoteBOT
#

👋 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/1369890130898452541

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

long forge
#

The key idea here is that you collect the payment details from client-side first, send the details to backend, so that you can inspect the card iussing country and adjust the paymentIntent amount accordingly.

#

btw are you using Stripe mobile SDK?

gaunt sphinx
#

Hi Jack, yes I', using Stripe mobile SDK, let say, we collect the card information first. For example: The user fills in his card type is a Domesic card, then all of my API works. What if he taps an international card after? Because we only know after his tap

long forge
#

What do you mean by " What if he taps an international card after" ?

gaunt sphinx
#

I mean he pays the money with an international card, but he filled domestic before. There will be a conflict, right?

#

Because we are building a taxi system, so we can't ask the Passenger to fill in the payment method. He only pay when he finish the trip

long forge
#

Hmm, why can't you charge with the card that you collected earlier?

gaunt sphinx
#

Because we are building a taxi system, so we can't ask the Passenger to fill in the payment method. Currently, we don't collect the passenger card detail

long forge
#

Ok, so it's about terminal integration, is it?

gaunt sphinx
#

yes, that's right. We are using tap to pay as Passenger payment method

long forge
#

Alternatively, you can also authorize a larger amount and only capture the needful later.

gaunt sphinx
#

This is only affect with capture payment intent manually, right?

#

@long forge

long forge
#

Yes you are right, you need to set capture_method to manual.

gaunt sphinx
#

Do we have any way for automatic?

long forge
#

No. In fact manual capture is recommended for a terminal integration to avoid duplicate charges.

gaunt sphinx
#

Thanks for your suggestion, let me investigate this aspect. In case, I have question, you are still in thread, right?