#MadMac
1 messages ยท Page 1 of 1 (latest)
Tax rate is only supported in Invoice, Subscriptions and Checkout Session: https://stripe.com/docs/billing/taxes/tax-rates
It's not possible to use tax rate directly in PaymentIntent as explained by Jack.
The payment integration doc you shared is only for payment without tax rate
Is it possible to use tax rates with Stripe Elements?
It's not possible to use Stripe Element with PaymentIntent created directly from API.
It's only possible to use Stripe Element with PaymentIntent created via invoice.
Ok so if I create an invoice via the API then I can use the payment intent from this and somehow use this with Stripe Elements?
Does there happen to be any examples onthis?
We don't have an example for this. I'd recommend following docs:
- Create a tax rate: https://stripe.com/docs/billing/taxes/tax-rates
- Create an invoice: https://stripe.com/docs/invoicing/integration
- Add tax rate before finalizing an invoice: https://stripe.com/docs/api/invoices/create#create_invoice-default_tax_rates
- Get and expand payment intent from the invoice to obtain the payment intent client secret: https://stripe.com/docs/api/invoices/object#invoice_object-payment_intent
- Pass the payment intent client secret to the Payment Element and the rest of steps remain the same
Alternatively, you can just calculate the tax in your system internally, then set the final amount with tax in PaymentIntent. In this case, tax rate won't be used and tax calculation is within your system
Ok thanks I will take a look at that. I want the GST on the receipt and any invoices so the alternative option will not work
No problem! Happy to help ๐
One last question
Is it possible to just put some text on the receipt? e.g. "Total includes GST"
and 2. Is a receipt sent if I add a customer to the paymentIntent creation or do I need to add receipt_email?
Is it possible to just put some text on the receipt? e.g. "Total includes GST"
You can add text indescriptionfield: https://stripe.com/docs/receipts#customizing-receipts
Is a receipt sent if I add a customer to the paymentIntent creation or do I need to add receipt_email?
It'll bereceipt_emailon PaymentIntent API: https://stripe.com/docs/api/payment_intents/create#create_payment_intent-receipt_email
Ok thanks. Maybe I can solve this by continuing to use payment intents and just adding the "(inc GST)" to the end of the description. That way it will appear in the receipt and invoice.
No problem ๐