#mrcoles
1 messages · Page 1 of 1 (latest)
Hi, you can retrieve the line_items from your Checkout Session by using this https://stripe.com/docs/api/checkout/sessions/line_items endpoint. Or are you asking something else?
I have a webhook that listens to payment_intent.succeeded so in that context I have the payment_intent instead of the Checkout Session, but maybe I can track down the session there
or I could get funky and pass the price into the metadata of the payment_intent when I create the checkout session…?
You could listen to this event: https://stripe.com/docs/api/events/types#event_types-checkout.session.completed.
Or, you could also pass that information in the Metadata of the PaymenIntent.
ok ya thx. I just found this too which digs into that https://stackoverflow.com/a/69920226