#buttonclick
1 messages · Page 1 of 1 (latest)
yes, i need to intercept the paymentintent generated by the paymentlink
Gotcha
So the Payment Link will create a Checkout Session
Which will have a payment_link property: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
As well as a PaymentIntent property: https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
OK, thanks
Is there an API call to locate a checkout session through the associated paymentlink?
I saw that the Retrieve Session API call takes the session ID as a Required parameter.
But I only have the paymentlink url
You can list all PaymentLinks to inspect their URL so that you get the PaymentLink ID
do you mean to process all checkout sessions to find the one that has the paymentlink I'm interested in?
There are various ways to do this
Let's back up a second
What are you really trying to do here
What is the end goal
So,
I provide my customer with the link to make a payment.
for instance:
https://buy.stripe.com/test_bIY4hJ3aR6PM0wwdRX.
The customer pays and a checkout.session.completed is generated.
How do I retrieve the checkout.session that refers to the source paymentlink?
Among the Postman API I found the call "retrive checkout" but this requires the session ID which I don't know