#alexstyl-checkout

1 messages · Page 1 of 1 (latest)

gloomy bloom
#

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

tall heron
#

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

gloomy bloom
#

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

tall heron
#

thanks! I managed to expand the items and get the id of the purchased subscription

gloomy bloom
#

great!