#alexstyl-checkout
1 messages · Page 1 of 1 (latest)
hi! you have to retrieve the Session object while handling the webhook and include expand:["line_items"] so you can see the items purchased, it's not included by default
thanks for the reply. is there a way to test this?
I noticed that when I do a successful purchase via checkout on localhost, the webhook is not triggered. is the webhook meant to work with localhost normally?
ah ignore that. it got triggered. looking into the response now
yep it's all possible to test. If you have only a local server you can use stripe cli to stripe listen --forward-to to forward webhooks to the local process
thanks! I managed to expand the items and get the id of the purchased subscription
great!