Forum Moderators: buckworks

Message Too Old, No Replies

PayPal return variable problems

Redirecting to "site/?=Return+To+Merchant

         

Nutter

1:04 am on Nov 28, 2005 (gmt 0)

10+ Year Member



Let's say I'm trying to set PayPal to redirect back to www.example.com/index.php?op=paypalconfirm&order_id=23. It have that set in the return hidden variable for the form. But, when it actually redirects, it goes to http://www.example.com/index.php?=Return+To+Merchant.

This is in the PayPal sandbox, but I don't want to try a real transaction just to check if I've got it working right.

Any thoughts on what I'm doing wrong.

devil_dog

3:21 pm on Nov 29, 2005 (gmt 0)

10+ Year Member



try replacing the & with %26
the & would be confused as a postdata seperator...

www.example.com/index.php?op=paypalconfirm%26order_id=23

Nutter

3:49 pm on Nov 29, 2005 (gmt 0)

10+ Year Member



It actually wound up being an issue of the 'rm' hidden form value. It defaults to 0, which causes a POST when your site is redirected to, so the query string variables don't work. I changed 'rm' to 2 and it works. 1 is also a valid option, but I don't know the difference.