#mink4501_api
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/1228189777501622352
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, are you asking whether you can get the location info of the customer?
For one-time payments, use the checkout.session.completed event.
For subscription payments, use the checkout.session.completed event only for the first payment, and use the invoice.paid webhook event for re-payments in the next subscription cycle.
Hi there, are you asking whether you can get the location info of the customer?
=> I want to know the country code that applies when I charge taxes.
Are you asking how the tax is calculated?
https://docs.stripe.com/tax/calculating tax calculating is complicated. It's not just the customer's location, the seller's location and many other factors can be invovled.
So how do I know the customer's country code at the time of the payment through the API?
Let me see if the API surfaces this information
No, there's no API to retrieve the customer's location or country code at the time of the payment was made
Doesn't Stripe collect the country code at the point of checkout internally, even for fraud detection? I don't understand why I can't get this.