cancel
Showing results for 
Search instead for 
Did you mean: 

How to set the return url with multiple parameters in php.

New Community Member

How to set the return url with multiple parameters in php.

The return url is the location where buyers return to when a payment has been succesfully authorized by PayPal to be able to continue the purchase. 


So it has to be the detail page where there're many parameters in the url like below, and at least it is so in my case.

 

http://xxxxx.com/demo.html?product_id=212&category_id=23&member_id=167

 

How can I set the url like above at the return url section in php?

 

$returnURL = "xxxxxxxxxxxxxxxxx"

 

Is there any way to deal with this in PayPal?

 

Is there any way to use coding that will bring you right back to where you used to be in the detail page?

1 REPLY 1
Highlighted
Frequent Contributor

Re: How to set the return url with multiple parameters in php.

Typically the return URL would be more simple, and then you would be calling GetExpressCheckoutDetails at that point to obtain all the data you need.

You could also use session variables or temporary db storage to ensure data you need is available that point. That will work better for you than trying to pass all this data around in URL params.

Angell EYE - www.angelleye.com
PayPal Partner and Certified Developer - Kudos are Greatly Appreciated!