#ethan-tran_best-practices
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/1369890130898452541
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, you can consider using the finalize payments on the server flow https://docs.stripe.com/payments/finalize-payments-on-the-server?platform=web&type=payment#submit-payment
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?
If so, you should follow this guide https://docs.stripe.com/payments/mobile/accept-payment?platform=ios&type=payment#submit-payment
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
What do you mean by " What if he taps an international card after" ?
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
Hmm, why can't you charge with the card that you collected earlier?
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
Ok, so it's about terminal integration, is it?
yes, that's right. We are using tap to pay as Passenger payment method
Ok, https://docs.stripe.com/terminal/features/incremental-authorizations you'll want to use incremental authorization so that you can increase the authorized amount based on the card issuing country before capturing it.
Alternatively, you can also authorize a larger amount and only capture the needful later.
Yes you are right, you need to set capture_method to manual.
Do we have any way for automatic?
No. In fact manual capture is recommended for a terminal integration to avoid duplicate charges.
Thanks for your suggestion, let me investigate this aspect. In case, I have question, you are still in thread, right?