#Debelox - webhooks
1 messages · Page 1 of 1 (latest)
Payment Links redirect users to Stripe hosted checkout so there are a number of events that work for that.
checkout.session.async_payment_succeeded?
checkout.session.completed, payment_intent.succeeded, charge.succeeded
i tried a test on checkout.session.async_payment_succeeded
i cannot find the product they bought
i could get the customer email
but i have setted product names, i need those to in the Json
cuz as per ny working u need it for a redeem code system and it sends code as per the product bought
so i match the product names with the Json
but i couldn't find the product name in the checkout.session.async_payment_succeeded event
Okay well it's a little more complicated but not too much.
The event you referenced will have the session ID
You then get the session from the API : https://stripe.com/docs/api/checkout/sessions/retrieve
And you expand the line items attribute to include the product information
what about payment_intent.succeeded
can i fetch the product name and email from the Json payload?
Nope.
so i have to use the api in all events?
cuz the site is a static html site
any other works straight forward?
If you want to get product information from the events related to the Payment Links