#muhammadadeel_63187

1 messages · Page 1 of 1 (latest)

plain fiberBOT
gloomy prairie
#

Do you know what the address is that's causing this error?

round jungle
#

i have picked user address with google api

gloomy prairie
#

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?

round jungle
#

on stripe customer detail its aslo have address

gloomy prairie
#

Where is your account domiciled?

round jungle
#

where i see domiciled?

gloomy prairie
#

That's the country your Stripe account was created for

#

You can view it in the Dashboard under Settings --> Account Details

round jungle
gloomy prairie
#

Is the address for your account in Australia too?

round jungle
#

yes

gloomy prairie
#

Also, have you tried other addresses? Like, the address of a commonly known public building for example?

round jungle
#

'line1' => 'Victoria Square, Adelaide SA, Australia',
'city' => 'Adelaide City Council',
'state' => 'South Australia',
'postal_code' => '5000',
'country' => 'Australia',

gloomy prairie
round jungle
#

req_K84PMeyRyY6EsN

gloomy prairie
#

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

round jungle
#

ok i will try please saty with me don't close chat

#

no still same error

gloomy prairie
#

Can you send me the request ID for that request?

round jungle
#

req_bBmjt9ujMJIY3R

plain fiberBOT
gloomy prairie
#

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?

round jungle
#

its a real address
ok i try

#

no still same error

#

i have tried with other real address

gloomy prairie
#

Do you have the request for the address update?

round jungle
#

i update address from stripe portal

hollow quest
#

👋 Taking over, give me a few to catch up

round jungle
#

ok

hollow quest
#

can you share the response object here?

round jungle
#

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

hollow quest
#

yup still looking

#

I don't see a tax parameter

#

are you sure you are expanding it?

#

$stripe->customers->retrieve('{{CUSTOMER_ID}}', ['expand' => ['tax']]);

round jungle
#

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
}

hollow quest
#

okay so looks like this address isn't valid for some reason

#

You're getting unrecognized_location error in the tax object

round jungle
#

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

hollow quest
round jungle
#

ok iwill be try it. if you have australian address that compatible with stripe please share

hollow quest