#HopRobotics - PaymentLink webhook products

1 messages · Page 1 of 1 (latest)

manic widget
#

You will want to retrieve the Checkout Session by its ID, then you can see the products for it in its line_items hash

oblique apex
#

Thanks. What type of event does the Checkout Session field show up in? Is this the "id" within the payment_intent.suceeded event data? (very 1st result)

manic widget
#

That would be the ID of the PaymentIntent which is related but different. You will actually want to listen for the checkout.session.competed event here, the id of the checkout session will be the id of the object in that event

oblique apex
#

Okay so its a multi-step process on the application end? I.e. Listen for the checkout.session.completed event, grab the "id" and then use a separate GET request using the id/line_items

manic widget
#

Correct, unfortunately the line items are not send in the event so you will need to retrieve them with the API

oblique apex
#

Thanks for your help, first time user and your support is wonderful!