#DanKeane - expand

1 messages · Page 1 of 1 (latest)

sour krakenBOT
steep hatch
#

Do you know what API version you're on?

#

Also, if you have a Checkout Session ID or Payment Intent ID I can look at, that would be helpful to assist with troubleshooting

carmine burrow
#

For sure.
Im not sure what version im using but im guessing its the latest

#

Session object

#

"cs_test_b1A727HIj5Kh5hgq2jPQ60xQZyJyphKYDfoyzqlgJos4RQ4oo2V7uKLdF4"

steep hatch
#

Ah, okay, so you will have to make a retrieve call (https://stripe.com/docs/api/checkout/sessions/retrieve) to get that Checkout Session object and expand the total_details.breakdown hash in order for total_details.breakdown.discounts to show the relevant details.

here's a tutorial on how to do that: https://stripe.com/docs/expand

Learn how to reduce the number of requests you make to the Stripe API by expanding objects in responses.

carmine burrow
#

Thank you. I didnt know you could use expand like that

#

thanks for your time

steep hatch
#

Sure thing!