#amanpaix
1 messages · Page 1 of 1 (latest)
Using Checkout session
i believe i have to use expand response option as some values are coming as empty
e.g i 'm getting total tax amount instead of their breakdown
I have session_id and payment_intent, what is rcommended to get the subtotal, tax breakdowns , any discount and total
Yes, breakdown is expandable as mentioned in the link I shared above:
can you share sample php code
Sample code for what exactly?
If you need help with using expand: https://stripe.com/docs/expand
Sample code to get total_details breakdown, Please
Retrieve the Checkout Session with https://stripe.com/docs/api/checkout/sessions/retrieve and pass expand: ["total_details.breakdown"]
Thanks, It worked, You are awesome.