#ilichev-kirill_docs

1 messages · Page 1 of 1 (latest)

arctic orioleBOT
#

👋 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/1277620031693525012

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

modern crest
#

Hello 👋
Is Stripe Tax already calculating the correct price for you and you are just trying to figure out how to preview this price? Or are you trying to figure out how to get Stripe Tax to calculate these prices the way that you want them to be?

burnt coyote
#

I haven't prepared anything regarding the taxes yet; I'm trying to plan how to transition to a Price with tax_behavior=exclusive.
My business has tax obligations in only a few jurisdictions, and I want to dynamically show the tax to users at the time of payment.
If a user provides their VAT, and the Reverse charge should apply, I want to dynamically show them that no tax will be charged.

#

However, I'm not sure yet if I can implement this in any way

modern crest
#

Are you using Checkout? Or is this your own custom page? Also are you selling subscriptions or are these one time payments?

burnt coyote
#

Currently, I'm using my own custom page, but I'd like to switch to Stripe Checkout if this functionality is available. I'm selling subscriptions that have already been purchased by thousands of users, so I have a two-step transition planned:

  1. I want to notify existing users about upcoming tax-inclusive charges and advise them to fill in their VAT and location.
  2. New users will follow a tax-inclusive flow right from the start.
#

My main task right now is to dynamically determine taxes for subscriptions based on VAT.

modern crest
#

I think the best way to preview the tax would be to use our upcoming invoice endpoint. You can specify the VAT and subscription items to get a preview of the price that we would calculate for a subscription with those same settings
https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-customer_details-tax_ids
https://docs.stripe.com/api/invoices/upcoming#upcoming_invoice-subscription_items

burnt coyote
#

Thank you so much for your response! I'll review everything more carefully now, and if needed, I'll ask a new question in a new thread.

#

Apologies, but I have one more question that I couldn’t find the answer to. How can I pay an invoice and mark the Subscription as paid using that invoice?

#

And one more question, please: Did I understand correctly that this functionality of calculating Tax using an Upcoming Invoice can only be implemented on a custom page?

modern crest
#

No worries, we are happy to answer questions and I get how that is an easy thing to look over. Helping with this kind of stuff is exactly what we are here for.

Apologies, but I have one more question that I couldn’t find the answer to. How can I pay an invoice and mark the Subscription as paid using that invoice?
Subscriptions automatically update their statuses based on the status of their invoice. So you may be able to achieve this by creating the subscription after the person has locked in the details that you need for the price and then have the user pay the first invoice from your page.
https://docs.stripe.com/billing/subscriptions/build-subscriptions
Did I understand correctly that this functionality of calculating Tax using an Upcoming Invoice can only be implemented on a custom page?
The method I was talking about was for a Custom page, I am actually not sure one way or another on whether Checkout supports this already. I would suggest trying this in test mode to see if we automatically update the price on the page

arctic orioleBOT