#Debelox - webhooks

1 messages · Page 1 of 1 (latest)

woeful blaze
#

Payment Links redirect users to Stripe hosted checkout so there are a number of events that work for that.

amber wing
#

checkout.session.async_payment_succeeded?

woeful blaze
#

checkout.session.completed, payment_intent.succeeded, charge.succeeded

amber wing
#

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

woeful blaze
#

Okay well it's a little more complicated but not too much.

#

The event you referenced will have the session ID

#

And you expand the line items attribute to include the product information

amber wing
#

what about payment_intent.succeeded

#

can i fetch the product name and email from the Json payload?

woeful blaze
#

Nope.

amber wing
#

cuz the site is a static html site

amber wing
woeful blaze
#

If you want to get product information from the events related to the Payment Links