#Ιvan
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share an example where you see the billing country and an example where you don't? Like by sharing the PaymentIntent ID (pi_xxx).
yes wait
I can find it here pi_3MgY1TBvyoQdH1ij0xOp87Cc
I can't find it here pi_3Mi0S1BvyoQdH1ij1xnQTlLJ
actually i can find it in both but it's not the correct billing country in this one pi_3Mi0S1BvyoQdH1ij1xnQTlLJ
What do you mean by "it's not the correct biling country"?
it shows as france for example
but it is not french it's saudi arabia
in that case
in the dashboard it shows it correctly
I'm confused. First you said "it's not correct", and now you are saing "in the dashboard it shows it correctly".
So can yo clarify exactly which part is correct and which part is not correct?
when i am making the request with the api it shows france, on the dashboard it shows saudi arabia
I wanted to know if there is a way to get saudi arabia via api
when i am making the request with the api it shows france,
Where exactly do you see france in the API?
in the charge billing details
charge.billing_details.address.country
I also tried checking from the invoice details but i can't find it also there
If you want to know the country of the customer, it's in the Customer object: https://stripe.com/docs/api/customers/object#customer_object-address
If you want to know the country of the payment method, it's in the PaymentMethod object: https://stripe.com/docs/api/payment_methods/object#payment_method_object-billing_details
I want to know the country used for the automatic tax calculation
that would be the address of the customer when he made the payment
Then I recommend reading this: https://stripe.com/docs/tax/customer-locations#address-hierarchy
but if he doesn't have the address anymore or he changed the address I cannot get the address used in that transaction
for example
how can i get billing address for this one pi_3MQ5YdBvyoQdH1ij1Ugt3hZv
Give me a few minutes to look into this.
Great, so is your issue solved?
yeah i just have an issue with two payments
I'll do it manually for those
ty for your help
Happy to help 🙂