cancel
Showing results for 
Search instead for 
Did you mean: 

conditional Return URL variable

New Community Member

conditional Return URL variable

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

 

1 REPLY 1
PayPal Employee

Re: conditional Return URL variable

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.

Ref:https://developer.paypal.com/docs/paypal-payments-standard/integration-guide/Appx-websitestandard-ht...

 

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,