#muhammadadeel_63187
1 messages · Page 1 of 1 (latest)
Do you know what the address is that's causing this error?
i have picked user address with google api
Right, but do you know for a fact that it's not null in some places? Can you place some log lines in your code to figure out exactly what is being passed in?
on stripe customer detail its aslo have address
Where is your account domiciled?
where i see domiciled?
That's the country your Stripe account was created for
You can view it in the Dashboard under Settings --> Account Details
Is the address for your account in Australia too?
yes
Also, have you tried other addresses? Like, the address of a commonly known public building for example?
'line1' => 'Victoria Square, Adelaide SA, Australia',
'city' => 'Adelaide City Council',
'state' => 'South Australia',
'postal_code' => '5000',
'country' => 'Australia',
Hmmm, okay. Do you have a Request ID I can look at for the error you received?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_K84PMeyRyY6EsN
I think it might have to do with the format of line1. It looks like this: line1: "Victoria Square, Adelaide SA, Australia", but that line should have something like 25 Pirie St
Can you send me the request ID for that request?
req_bBmjt9ujMJIY3R
You still have all that extra stuff on line1. Can you remove everything except 25 Pirie St? The line still has this whole string: line1: "25 Pirie St Victoria Square, Adelaide SA, Australia", so remove this part --> Victoria Square, Adelaide SA, Australia"
Also, I don't think "Adelaide City Council" is a city, right?
its a real address
ok i try
no still same error
i have tried with other real address
Do you have the request for the address update?
i update address from stripe portal
👋 Taking over, give me a few to catch up
ok
if you retrieve the customer using this endpoint
https://stripe.com/docs/api/customers/retrieve
and expand tax parameter, what are you seeing in the response?
can you share the response object here?
ok let me share
object(Stripe\Customer)#1823 (22) {
["id"]=>
string(18) "cus_Osa1I9rYaFp1t3"
["object"]=>
string(8) "customer"
["address"]=>
object(Stripe\StripeObject)#1828 (6) {
["city"]=>
string(6) "Sydney"
["country"]=>
string(9) "Australia"
["line1"]=>
string(13) "6 Cuthbert St"
["line2"]=>
string(0) ""
["postal_code"]=>
string(4) "2000"
["state"]=>
string(3) "NSW"
}
["balance"]=>
int(0)
["created"]=>
int(1698170240)
["currency"]=>
NULL
["default_source"]=>
NULL
["delinquent"]=>
bool(false)
["description"]=>
NULL
["discount"]=>
NULL
["email"]=>
string(19) "wyje@mailinator.com"
["invoice_prefix"]=>
string(8) "81D2D9D9"
["invoice_settings"]=>
object(Stripe\StripeObject)#1829 (4) {
["custom_fields"]=>
NULL
["default_payment_method"]=>
string(27) "pm_1O4pibBQlQWboC12Ticxzdxi"
["footer"]=>
NULL
["rendering_options"]=>
NULL
}
["livemode"]=>
bool(false)
["metadata"]=>
object(Stripe\StripeObject)#1833 (0) {
}
["name"]=>
string(10) "Joy Kinney"
["next_invoice_sequence"]=>
int(1)
["phone"]=>
string(12) "+61212345678"
["preferred_locales"]=>
array(0) {
}
["shipping"]=>
object(Stripe\StripeObject)#1837 (3) {
["address"]=>
object(Stripe\StripeObject)#1845 (6) {
["city"]=>
string(6) "Sydney"
["country"]=>
string(9) "Australia"
["line1"]=>
string(13) "6 Cuthbert St"
["line2"]=>
string(0) ""
["postal_code"]=>
string(4) "2000"
["state"]=>
string(3) "NSW"
}
["name"]=>
string(10) "Joy Kinney"
["phone"]=>
string(12) "+61212345678"
}
["tax_exempt"]=>
string(4) "none"
["test_clock"]=>
NULL
}
@hollow quest @gloomy prairie waiting for your response
yup still looking
I don't see a tax parameter
are you sure you are expanding it?
Try the code in the example
https://stripe.com/docs/billing/taxes/migration#customer-locations
$stripe->customers->retrieve('{{CUSTOMER_ID}}', ['expand' => ['tax']]);
ok i trying you example please don't close chat
her is the response of retrive customer
object(Stripe\Customer)#1824 (23) {
["id"]=>
string(18) "cus_Osa1I9rYaFp1t3"
["object"]=>
string(8) "customer"
["address"]=>
object(Stripe\StripeObject)#1829 (6) {
["city"]=>
string(6) "Sydney"
["country"]=>
string(9) "Australia"
["line1"]=>
string(13) "6 Cuthbert St"
["line2"]=>
string(0) ""
["postal_code"]=>
string(4) "2000"
["state"]=>
string(3) "NSW"
}
["balance"]=>
int(0)
["created"]=>
int(1698170240)
["currency"]=>
NULL
["default_source"]=>
NULL
["delinquent"]=>
bool(false)
["description"]=>
NULL
["discount"]=>
NULL
["email"]=>
string(19) "wyje@mailinator.com"
["invoice_prefix"]=>
string(8) "81D2D9D9"
["invoice_settings"]=>
object(Stripe\StripeObject)#1830 (4) {
["custom_fields"]=>
NULL
["default_payment_method"]=>
string(27) "pm_1O4pykBQlQWboC12pZ2AXjRv"
["footer"]=>
NULL
["rendering_options"]=>
NULL
}
["livemode"]=>
bool(false)
["metadata"]=>
object(Stripe\StripeObject)#1834 (0) {
}
["name"]=>
string(10) "Joy Kinney"
["next_invoice_sequence"]=>
int(1)
["phone"]=>
string(12) "+61212345678"
["preferred_locales"]=>
array(0) {
}
["shipping"]=>
object(Stripe\StripeObject)#1838 (3) {
["address"]=>
object(Stripe\StripeObject)#1846 (6) {
["city"]=>
string(6) "Sydney"
["country"]=>
string(9) "Australia"
["line1"]=>
string(13) "6 Cuthbert St"
["line2"]=>
string(0) ""
["postal_code"]=>
string(4) "2000"
["state"]=>
string(3) "NSW"
}
["name"]=>
string(10) "Joy Kinney"
["phone"]=>
string(12) "+61212345678"
}
["tax"]=>
object(Stripe\StripeObject)#1842 (3) {
["automatic_tax"]=>
string(21) "unrecognized_location"
["ip_address"]=>
NULL
["location"]=>
NULL
}
["tax_exempt"]=>
string(4) "none"
["test_clock"]=>
NULL
}
okay so looks like this address isn't valid for some reason
You're getting unrecognized_location error in the tax object
guid me how i set the correct adrress and start collecting automatice tax, i am picked address from google that are actuall addresses
i am using laravel cashier
Can you try with the example address shown in the docs?
https://stripe.com/docs/billing/taxes/collect-taxes?tax-calculation=stripe-tax#create-a-customer
ok iwill be try it. if you have australian address that compatible with stripe please share
One more thing, can you check if you have an Australian tax registration here?
https://dashboard.stripe.com/test/tax/registrations