#ulysses-ck_webhooks
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1357406638901956690
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi! Can you give me a Checkout Session event ID that you've created with the product?
I'm going to search for one
cs_test_a1NsdP2Svu2dUFWJthguq4HtETCXy34j23Kn3pIV5cjeTOyDhabAjVwLjL
So so sorry. Still looking.
Hello, it is expected for line_items to not be present in that event. The best way to handle this is to retrieve the checkout session's line items by its ID and checking the IDs present there
https://docs.stripe.com/api/checkout/sessions/line_items
So sorry. You just need to expand the line_items property when you retrieve the Checkout Session and you'll see the Product ID(s) at line_items.data[].price.product
Pompey is correcter than I am. ๐
Either should work, retrieving the session may make more sense if you want to expand other fields on it.
And two potential ways to make this easier could be to store IDs that you care about in the Checkout Session's metadata as that will be in the event. Or you could cache a session -> products mapping on your side and refer to that
Thanks to you two!!! Right now, I have a wide persective to make it