#gamesover - card country
1 messages · Page 1 of 1 (latest)
Are you looking for the country on your server side or on the client side just after the payment has been made?
Hi @north zinc , to be frank, either way. https://stripe.com/docs/payments/payment-element , I want to get the Card Country in the UI
I don't mind. backend side is ideal, but if frontend side can get the card country, I can just pass to backend side
One thing I want to highlight, I am implementing https://stripe.com/docs/payments/finalize-payments-on-the-server#update-application-fee , so I get Card Country, calculate application_fee_amount, then finish the payment
If you have the payment method object, you can check the card.country property on it https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-country
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And that payment method ID should be on the payment intent or setup intent after you confirm them via the payment element
ah, awesome! let me have a try
it works. Thanks for your info @north zinc . It saves my day!
Thank you for the kind words! Glad I could help you figure this out