#ameen_06487
1 messages · Page 1 of 1 (latest)
Hi there, the metadata that you set on the paymetn link object only live in payment link.
https://stripe.com/docs/payment-links/url-parameters#streamline-reconciliation-with-a-url-parameter you might want to associate your custom data by using the client_reference_id , so that you can listen to checkout.session.completed event and reconcile.
is there any way to get retrieve payment link, or payment link id, when the payment failed?
You can listen to payment_intent.payment_failed event, and retrieve the checkout session by using the listing API with payment_intent ID (https://stripe.com/docs/api/checkout/sessions/list?lang=node#list_checkout_sessions-payment_intent), and obtain the payment_link ID from the checkout session object (https://stripe.com/docs/api/checkout/sessions/object?lang=node#checkout_session_object-payment_link)
Thank you so much this solved my problem which was there for last 3 days..