#kibbas
1 messages ยท Page 1 of 1 (latest)
There's no tax field(s) on the Payment Intent directly. How are you integrating and calculating tax today?
We use the Order API to create the orders and we put the tax_enabled=true
Hmm, that API will be deprecated very soon so I'd recommend moving off of that
Anyway I think the tax data is on the associated line item on the PI: https://stripe.com/docs/api/payment_intents/object#payment_intent_object-line_items
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I can't see this line "payment_intent_object-line_items"
It needs to be expanded when you fetch the Payment Intent: https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Overall though I wouldn't recommend continuing building any integration against this API
Yes i know for the deprecated, but i want to see in the export "payment_intent" the tax if it's possible. Because now, when i export the file by the dashboard, the TAX it's 0.
https://dashboard.stripe.com/test/payments
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Yeah my guess is we never built that into the exports. Maybe it's available via the API via the details above
But overall not really familiar with the state of the API as it's sunset
Yeah as I said we stopped work on this API so maybe that never shipped
Your best bet is to retrieve the tax details directly from the Order object
Ok, I misread. Thank you for your reply. Have a nice day
๐ taking over for my colleague. Let me know if there's any follow-up Qs I can answer!
Hello ! If you have any answers regarding taxes on the payment_intent API, I'm listening ๐
nothing that my colleague didn't already mentioned.