conditional Return URL variable
tvhs
New Community Member
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Sep-16-2020
07:13 AM
Hi,
When creating a Pay Now button, is it possible to set a return URL dependent on the price selected in the price drop down?
For example:
If £100 is chosen then after payment return to page XYZ
If £200 is chosen then after payment return to page ABC
thanks
Labels:
- Labels:
-
PayPal HTML Buttons
1 REPLY 1

Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sep-29-2020
08:17 AM
Hi @tvhs
Thanks for using our community PayPal forum,
Unfortunately, using the same button, this is not possible. You would have to create 2 separate buttons and set up different return URLs, apologies.
returnOptional | The URL to which PayPal redirects buyers' browser after they complete their payments. For example, specify a URL on your site that displays a thank you for your payment pag |
Thanks,

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- Buy Now button and variables return / Retour avec bouton "buy now" in PayPal Payments Standard
- Customising Paypal Checkout Button in PayPal Payments Standard
- payment button error with return variable in PayPal Payments Standard
- Do Pre-Chargeback Eventually Clear to Seller Account? What is the IPN Code? in PayPal Reporting
- showing custom_id information in a subscription in SDKs