#llucero-checkout

1 messages · Page 1 of 1 (latest)

junior marsh
#

Hello! Can you share the request ID that creates the Checkout Session?

winged ferry
#

yes, give me a sec

#

I wasn't able to find the request ID

junior marsh
#

Do you have the Checkout Session ID then? (cs_xxx)

winged ferry
#

here is a photo of my cloud function that creates the checkoutSession

junior marsh
#

Gotcha - and when you're retrieving the checkout session line items, what are you expanding?

winged ferry
#

session_id=cs_test_a1ALBz4Nz39ssFGKlLwyaiSUgucGy6FJjoznrm8bTxz9JH0RbRn4grJbEj

#

here is a session ID after a completed payment

#

i tried to expand data.price.product when i retrieve line_items

junior marsh
#

What does your expansion code look like?

winged ferry
junior marsh
#

Are you absolutely sure you're calling the correct version of your code? Looking at the latest retrieve reqeusts for cs_test_a1ALBz4Nz39ssFGKlLwyaiSUgucGy6FJjoznrm8bTxz9JH0RbRn4grJbEj, I don't see any expansion params being passed in

winged ferry
#

I am not absolutely sure. I may have deployed an incorrect version of the function.

#

Thank you for your time. I appreciate it.

junior marsh
#

👍 Yeah as far as I know the code you've shown should work - so definitely make sure that's the exact code that's running and make sure when you look at your requests logs they reflect what you're passing in for expansion

winged ferry
#

Didn't even occur to me that I had deployed the wrong function. You made my Monday. I've got access to the line_items metadata. I'll be sure to check the request logs in the future. Thanks again!