#Aspecs
1 messages · Page 1 of 1 (latest)
let stripe_invoice = await stripe.invoices.create({
auto_advance: false,
collection_method: "charge_automatically",
customer: stripe_customer,
description: "Monthly invoice for " + new Date(start).toLocaleDateString("en-NZ", { month: "long", year: "numeric" })
});
for (let i = 0; i < line_items.length; i++)
{
let line_item = line_items[i];
await stripe.invoiceItems.create({
currency: "nzd",
customer: stripe_customer,
invoice: stripe_invoice.id,
description: line_item.description,
unit_amount: line_item.price,
quantity: line_item.quantity,
tax_behavior: "inclusive"
});
}
The item prices are inclusive of the 15% GST Tax, I need to display that on the invoice and have a way to toggle it on/off
in_1N7w3hEK8UKsRo17QfBrF1hJ
Hi
Thanks for sharing all these details, checking...
Like for the checkout session, when the customer puts their email in it automatically checks if they pay the tax from the country code, How can I enable that here.
Like for the checkout session, when the customer puts their email in it automatically checks if they pay the tax from the country code, How can I enable that here.
You need to activate automatic tax for that.
In the dashboard?
yes, check the link I shared.
Checking..
that are inclusive of tax, how can I automatically show on the invoice the amount of tax taken for the transaction
The tax amount is included in the product or service's displayed price. This means that the customer sees a single price for the item, which already contains the necessary tax. When using tax-inclusive pricing, you need to calculate the tax portion and the net amount from the total price.
So you can't display in the invoice the inclusive tax. If you want to show tax amount, then use exclusive tax rates:
https://support.stripe.com/questions/inclusive-and-exclusive-tax-options-in-the-tax-rate-api-and-stripe-tax
It's a bit tedious