PayPal returning with ?=Return+To+Merchant
Just a quick post since I had a really tough time finding an answer to a problem I was having.
I’m working on an
After I went through the entire payment process in the
In case you’ve never set up PayPal as a payment gateway, you create a form with several hidden input fields to pass along the information that PayPal needs to complete the transaction; sales tax, shipping, item names, etc. One of the variables is called return, and it lets you tell PayPal where to send the visitor after a successful transaction - Thanks for ordering, that type of page.
Well, this site is PHP based and uses query strings, although I may do some sort of .htaccess mod_rewrites before all is said and done. The return variable was set to example.com/index.php?pa=paypalconfirm. But PayPal redirected to example.com/?=Return+To+Merchant, obviously not what I was after.
After skimming through around a hundred pages trying to find what I was after, I found another variable to use that determines how PayPal returns data back to your page. It’s the rm variable, and it defaults to 1 which means GET. Seems the GET data and my query string were at odds and causing problems. I added the rm field and changed its value to 2 and everything appears to be working.
Here’s the link where I actually found that the rm variable was what I was after.




Steve on March 27th, 2006 at 12:31 pm
Thanks a ton! I was having the same problem with our software. Your suggestion worked like a charm.
-Steve