#yevgeniy-tax-charge
1 messages · Page 1 of 1 (latest)
Hello @rough vortex, thanks for threading my question
Hey there, Stripe Tax only supports Checkout Billing and Invoicing integrations, you can't get automatic tax on Charges or Payment Intents
https://stripe.com/docs/tax/faq#what-integrations-do-you-support
If you want to add tax on these payments, you need to calculate it yourself and adjust the amount of the payment
So the only ways I can get taxes calculated automatically are either creating Checkout Billing or Invoices, am I right?
Correct -- if you want taxes on one-time payments, you should look at whether using Checkout is suitable for your business
However, on the frontend side we are using customized Stripe Elements. But I assume I can tax a payment with Billing or Invoice APIs on the backend
But the only problem with Invoices is the following error:
{
"error": {
"code": "invoice_no_customer_line_items",
"doc_url": "https://stripe.com/docs/error-codes/invoice-no-customer-line-items",
"message": "Nothing to invoice for customer",
"param": "customer",
"type": "invalid_request_error"
}
}
So I created an invoice item based on Customer id, amount and currency. Should I create an Invoice object now?
yep! though for getting Tax support i think you'll need to use Prices (which have Products to define their tax code and tax behavior)
Alright, thank you so much for your kind help! It's truly appreciated!🙏
Quite welcome!