#kamil1999_api

1 messages ยท Page 1 of 1 (latest)

ornate boughBOT
#

๐Ÿ‘‹ 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/1295464363624366174

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

sage dust
hushed gate
#

currently not, i have only error message

sage dust
#

That's not much to go with unfortunately, we'll need a reference point to start the investigation. Just the error message isn't enough.. Can you share the platform and the connected account ID?

hushed gate
#

hmmm, i will try get more data

#

sorry, its not after onboarding, its on buying normal stripe subscription

#

im still lookig

#

wait, i have somethinh

#

error:
customer_tax_location_invalid
The customer's location isn't recognized. Set a valid customer address in order to automatically calculate tax.

Logs:

{
  "automatic_tax": {
    "enabled": "true"
  },
  "customer": "cus_Ptlc4Kv2iE7FYc",
  "expand": {
    "0": "latest_invoice",
    "1": "latest_invoice.payment_intent"
  },
  "items": {
    "0": {
      "price": "price_1NqM47BofmnoZGzp7Ae1AEp5"
    }
  },
  "payment_behavior": "default_incomplete",
  "payment_settings": {
    "save_default_payment_method": "on_subscription"
  },
  "trial_end": "1730126807"
}

#

is this enough ?

sage dust
#

Is there a request ID? req_xxx ?

hushed gate
#

ye

#

req_qChDCUg9dXCg06

sage dust
#

There's no address associated with the customer

hushed gate
#

what this mean ?

#

when customer was creted we didnt save address?

sage dust
hushed gate
#

thats strange

#

so through form maybe its optional

#

can i do also such fast and cool resarch ? How you so fast find it?

#

and to make payments work i should just add address to this customer on stripe ?

sage dust
#

We have our own tools which help us go through objects faster.

But if you wanted to self-serve this, you'd start with a request that failed from your logs - https://dashboard.stripe.com/workbench/logs

Then find the associated customer ID for whom the request was failing and then filter using the resource ID to find the creation request for the customer

hushed gate
#

wow, thats cool

#

thank you for teach me

sage dust
#

Happy to help ๐Ÿ™‚

hushed gate
#

and for your help!

#

have a good day, thank you so much ๐Ÿ˜„

#

are you there yet?

#

because now i see that have other subscriptions that pass through payment but dont have address

#

for exmaple cus_R0p76wELglM3O0

dusk saddle
#

Hi there ๐Ÿ‘‹ jumping in as my teammate needed to step away. Can you elaborate on that? Can you share the ID of the request you're referring to? (Sounds like you were expecting it to error, am I understanding that correctly?)

hushed gate
#

hello there

#

in shortcut:

  • somomeone was buying subscription by receive error
    "The customer's location isn't recognized. Set a valid customer address in order to automatically calculate tax."

the requset id was req_qChDCUg9dXCg06

Hanzo told me that customer from this request (req_qChDCUg9dXCg06) was missing address so error appeared

#

but i see that customer cus_R0p76wELglM3O0 dont have address and bought subscription in the same way without error

#

so maybe beacause they had diffrent location? for example one from UK (no error) and other from India (with error)

dusk saddle
#

Do you have the ID of the Subscription you're referring to? It should have a sub_ prefix

hushed gate
#

yes, this is subscription that was creating succesfully sub_1Q8nTMBofmnoZGzprZqYOdFE

dusk saddle
#

Gotcha, taking a look

#

Hm, I thought maybe the tax codes for the Products would be different so one was tax exempt, but that doesn't seem to be the case.

hushed gate
#

hmm i see that customer cus_Ptlc4Kv2iE7FYc who had location error, has subscription that was cancelled yesterday

#

and error with location is from today

dusk saddle
#

Yes, but it doesn't look like you made any changes to the Customer's address.

hushed gate
#

yes, he did everything through frontend

dusk saddle
#

Ah, I read your details about this customer wrong. I thought you were saying they had a Subscription created initially, then encountered an error creating one later, I overlooked that these are two distinct Customers. Let me reorient a bit.

hushed gate
#

Ok, so i see that customer sub_1Pcit4BofmnoZGzpWZf1fxhf had before some subscriptions, yestarday his subscription was cancelled, and today he tried buy diffrent subscription but receive location error

#

i dont know if he is not from India

dusk saddle
#

I'm double checking exactly where Stripe Tax pulls address details from. In the case of sub_1Q8nTMBofmnoZGzprZqYOdFE, I think the creation request may have succeeded because the Payment Method being used has address details on it.

hushed gate
#

any idea how to reproduce it?

#

and if I save address in customer object -> i shouldnt have more errors?

dusk saddle
#

It's your flow, so you likely understand how to reproduce this better than I do.

I see this is where you created the Payment Method being used:
https://dashboard.stripe.com/test/logs/req_tbpw6pAf3yhwLA
from the Card Element.

Then you passed the ID of that Payment Method to default_payment_method when creating the Subscription:
https://dashboard.stripe.com/test/logs/req_XnYQxg089FWzia

#

Yup, if you save address details on the Customer object, per the doc I shared those will be used before we look for address details on the Payment Method.

hushed gate
#

i see

#

thank you for sharing knowledge

dusk saddle
#

Any time!

hushed gate
#

have a good day! ๐Ÿ˜„