#sébastien
1 messages · Page 1 of 1 (latest)
Hi there, you can't pass these params as query URL params, you need to specify them when creating a PaymentLink.
There's no params equivalent to cancel_url in PaymentLink creation API.
The equivalent of success_url in PaymentLink API is after_completion.redirect.url
(https://stripe.com/docs/api/payment_links/payment_links/create?lang=node#create_payment_link-after_completion-redirect-url)
Thanks Jack. How do I specify my variables when creating the link? I don't see this option in the creation page on the dashboard? I would need these variables to be dynamic, so the values come from my web page that contains the link. Possible?
Too bad there's no cancel_url, it's necessary though. I display a product page with the payment link, the visitor could cancel and want to go back. Thanks for your help
You can switch to the After payment tab and select Don't show confirm page and specify a URL.
That was the subject of my question. How to display in this confirmation address dynamic variables that I would have indicated on my payment page, and therefore on the payment link?
There's no way to set the confirmation page directly. You can set one confirmation page per one payment link
Sorry Jack, I don't think we understand each other.
I have a web page on which my client (id_client=1234) connects to pay for his annual subscription. I created a payment link and set up a confirmation url in the dashboard.
I would simply like this variable (id_client=1234) to be retrieved when opening my confirmation page and, above all and very important, to be able to use it in my endpoint to update my database. The idea would be that my payment link includes personal variables that I can then use in my endpoint. This is what I'm currently doing with Paypal that I want to leave for Stripe. thanks again
This sound like a use case that Checkout Session API can help with
You can specify a metadata when creating a checkout session (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-metadata) and you can put arbitrary custom data in it.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.