#arrow

1 messages · Page 1 of 1 (latest)

scarlet novaBOT
late flower
#

You're listening for checkout.session.completed events, right?

molten reef
#

yes

#

I don't get the name of the product in it. I checked multiple not only on my backend but also in the logs on the website dashboard

late flower
molten reef
#

cool and it takes session ID as parameter ?

late flower
#

Yep!

molten reef
#

and also one more thing which I cannot figure out

#

where can I get the pricing-table-id ? in webhook ?

#

I have 3 price table on a single website each is used for selling differect service and I am not sure how to get the pricing table id ? is that possible or I have to create separate products for each table ?

late flower
molten reef
#

ahh ok cool

#

Also I was just reading though line item api call ... what is line item ? as it an array so I am not sure why we would have muliple line item of a session ?

late flower
#

It's an array yes, that's just the shape of the Checkout API which pricing table is built on. But in case of pricing table, it'll only ever contain a single item

molten reef
#

cool thank you so much for the help

late flower
#

np!

#

I say ever, I mean currently. Pricing table could change to support multiple items in a single Checkout