#Brayden-link

1 messages ยท Page 1 of 1 (latest)

regal nymph
vague remnant
#

right, using that new/experimental payment links api, and need to figure out which link was responsible for the payment intent success webhook event

#

ive actually already jumped the gun and headed to stripe support, in a live ticket there-

#

feel free to ignore me until i have a resolution there if this isnt a simple thing to figure out ๐Ÿ˜›

regal nymph
#

as far as I know it's not possible, I was going to say when we have an API for creating the links that might add a connection somewhere.

#

looks like you can use metadata when creating the PaymentLink in the API

Metadata associated with this Payment Link will automatically be copied to Checkout Sessions created by this Payment Link.

vague remnant
#

rgr- ive got metadata on the paymentlink already,

#

so i should now query all checkout sessions on paymentintent.success webhook event

#

find matching payment intent

#

and retrieve metadata that way? ๐Ÿค”

regal nymph
#

well why not just use the checkout.session.completed event?

vague remnant
#

ah there we go, that might be the one i needed.

regal nymph
#

that's what you're supposed to use for reconciliation, not payment_intent.succeeded