#hy1989_code

1 messages ยท Page 1 of 1 (latest)

wheat folioBOT
#

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

๐Ÿ“ 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.

raw pewter
sharp sky
wheat folioBOT
sharp sky
#

Adding response as well

raw pewter
#

You can't edit a finalized invoice. Can you confirm what you're really trying to accomplish so I can think of solutions?

sharp sky
#

We want to implement reverse charge VAT handling based on the customer's country selection.

Our business and Stripe account are both based in Switzerland.

If the customer is from Switzerland, we charge Swiss VAT and show it clearly on the invoice.

If the customer is outside Switzerland, we do not charge VAT. Instead, we want to display the following note in the invoice footer:

"Reverse Charge: VAT to be accounted for by the recipient as per applicable tax law."

How can we achieve this behavior using Stripe?

attaching our sample invoice

graceful patrol
#

Hey! Taking over for my colleague. Let me catch up.

#

You should make this request: req_85FtQzL7e2Dp03, before the invoice got finalized

#

usually you have one hour window to update the generated invoice from Subscription

#

The idea is to listen to the webhook event invoice.created and do your check (add footer or not, add VAT or not...) and update the invoice as it will remain in draft status for ~1hour.

sharp sky
#

after adding the few changes we are getting below error

You can only enable invoice creation when mode is set to payment. Invoices are created automatically when mode is set to subscription, and are unsupported when set to setup.

graceful patrol
#

Can you share the request Id ?

#

What changes you did exactly ?

sharp sky
#

https://dashboard.stripe.com/test/workbench/logs/req_SWt5az6n1lcuBn

Request Id: req_SWt5az6n1lcuBn

I have set this before creating the invoice

InvoiceCreation = new SessionInvoiceCreationOptions(){ Enabled = true, InvoiceData = new SessionInvoiceCreationInvoiceDataOptions() { Footer = paymentCheckoutRequest.Metadata["reverse_charge_note"], },},

graceful patrol
#

And then create the Checkout Session for them.