#Elliott
1 messages ยท Page 1 of 1 (latest)
Hi there, the PaymentIntent or Charge object alone doesn't carry information about tax.
Any ideas where does? ๐
Sorry, I thought that was adding to this thread...my bad ๐๐ฝ
No problem
If you are using Checkout session, you can find the tax breakdown here https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-total_details-breakdown-taxes
Remember to expand the breakdown field because it's not included in response by default.
And this is the tax info for invoice (https://stripe.com/docs/api/invoices/object#invoice_object-total_tax_amounts)
Some of the transactions I'm trying to get the Tax Amount for are created by Payment Links or PaymentIntents rather than Checkout Sessions.
So, no Checkout Session or Invoice is created. That's where I'm getting stuck...
PaymentLinks are powered by CheckoutSessions, so you can also listen to checkout.session.complete and get notified when a checkout session created by PaymentLink completes
I don't think you can use Stripe Tax directly with PaymentIntent, do you have a PaymentIntent ID that I can take a look?
Gotcha. That works for one scenario - But there are payments that are coming from connected Apps, which are only creating PaymentIntents, with no CheckoutSession or Invoice created...
Hey! Taking over for my colleague. Let me catch up.
I think you're correct there. But can a Tax Rate be applied to a PaymentIntent?
Example PaymentIntent ID: pi_3M3E22Bo7SzITtMc0P4V0nTf
This doesn't have tax applied to it, however since I haven't switched Stripe Tax or Tax Rates on in "Live" yet.
You can't set tax to PaymentIntent directly since the Object has only the resulting amount including fees, tax and so one
Taxes can be applied using Stripe Checkout, PaymentLinks or Invoices:
https://stripe.com/docs/tax/checkout
https://stripe.com/docs/tax/paymentlinks
https://stripe.com/docs/tax/invoicing
Otherwise you need to compute tax on your end in (your integration) and pass the final amount when creating the PaymentIntent
I think this is the answer I needed. Basically, this scenario (where Payments are created with only PaymentIntents) are from connected Apps to Stripe. I'll go and have a look at how they handle tax and it may just be an out of scope scenario. Thanks so much for your very fast help. ๐๐ฝ๐ฅ
With my pleasure! Don't hesitate to come back if you have any follow up Questions!