#golden-PaymentLink
1 messages ยท Page 1 of 1 (latest)
Got it, you can use this param https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-redirect-url
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 I talked, for ex, if user click purchase button, shows payment link and once user finish the payment, back to my site, and my site should know the payment result
You can embed {CHECKOUT_SESSION_ID} into the URL to have the id of the completed checkout session included. After that you can pass this session ID to your backend, retrieve the checkout session with payment_intent field expanded (https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent) , and check the payment status.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Exciting.. THanks for your great guide!
No problem!
One more question.. Sorry.. When create payment link url in dashboard manually,, I cannot see any after_completion options.. These options can be set by only api call? Is it impossible to set after_completion options manully on dashboard
?
You can set the redirect URL here.
Yes you can try it out ๐