#andy-paymentlink-customurl
1 messages · Page 1 of 1 (latest)
andy-paymentlink-customurl
you can configure the "after payment" flow in the Dashboard when creating your PaymentLink, is that what you are asking?
IS there a way to do this in the payment link url as i need it to change based on what environment our site is running in
as in the redirect url, as we have staging and live
you can control the redirect URL in the API https://stripe.com/docs/api/payment_links/payment_links/create#create_payment_link-after_completion-redirect
So you can set this with whatever query parameter you need in that case yes
can i use the "redirect" in a payment link generated in the stripe control panel? i.e. https://buy.stripe.com/dR68wQ0GGb4R9fqaEG?redirect={WEBSITE_URL}
I would say yes. Sorry I don't fully grasp the way you worded the question and what's blocking you yet
no problem, i have created a payment link in the stripe control panel and i would like to be able to add a dynamic thank you url as part of the payment link url like this https://buy.stripe.com/dR68wQ0GGb4R9fqaEG?redirect={WEBSITE_URL} I
This doesnt seem to work though
Okay now I understand. That's impossible. Really you should have 2 separate PaymentLinks