#ashish_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1261356497971974157
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Is there a way that I can use Address element and it will automatically take care of tax calculation ?
Do you have a request ID?
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.
Nope, I don't have request Id
Soprry
here is the one
req_8kr6AZDfbORHWx
I tried Address element but still tax is null in subscription
invoice
I meant a Request ID for the request that gave you the error
Looks like you chose Afghanistan as the country on the Customer object. Stripe Tax is't available there: https://docs.stripe.com/tax/supported-countries
Ah this is the one that failed recently
req_4KVQ7ZCqxkAWF8
This one is from Canada
req_oeLHbNacP0Jvys
Company is registered as BC, Canada
Doesn't look like it: https://dashboard.stripe.com/test/logs/req_uPK58Z41IzheRj
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
is
You have to enter a full address on the Customer. It can't be just a country and a state
How about when we create subscription without automatic_tax. And then before client pays we update customer address and update the subscription and use latest_invoice's payment_intent to create the element to capture the payment ?
Will that latest_invoice will have tax automatically calculated ?
Not if there's not a full address
So is this what I can do ?
Subscription (without proper address / no auto tax) --> Collect address using AddressElement --> Update Address of Customer --> Update Subscription(auto-tax) --> CheckoutElement --> This should have now tax.
I'm not sure what CheckoutElement is, but other than that it should work
Sorry it's PaymentElement(React Element) to capture Payment
You can actually combine the Address Element and the Payment Element into one step. You just display them in the same form
But I cannot create subscription with autocollect atx
So if I use AddresElement and PaymentElement together, I don't have to change subscription(automatic_tax) to true to calculate tax automatically ?