#eleanor

1 messages ยท Page 1 of 1 (latest)

novel axleBOT
shut torrent
#

Hi ๐Ÿ‘‹

You should have the record of the checkout session creation in your Account logs.

#

You can see the URLs provided there

willow marlin
#

Right โ€” is there an endpoint we can request this info from, though, given an invoice id? (or a way we can get it in the event returned by the webhook?) We're hoping to do this automatically in our webhook handler if possible, and to only record it when someone has actually paid, as opposed to just creating a session.

shut torrent
#

In that case you would need to find the related Checkout Session ID and retrieve the session

#

You would start by getting the Payment Intent from the payment_intent_id on the Invoice

willow marlin
#

Ah, okay, thank you!

#

Would it be possible to pass metadata along manually? or not really?

#

As in when I create a checkout session, somehow persist custom location of where the request came from so that I can see it on the other side when the payment has happened

shut torrent
#

You can add metadata via the payment_intent_data.metadata parameter when creating the Checkout Session. That might be the easiest way to go about this.

willow marlin
#

Ah awesome!! Thanks so much for your help ๐Ÿ™‚