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

astropage
New Community Member

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?

Login to Me Too
1 REPLY 1

angelleye
Advisor
Advisor
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!
Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.