Session lost after being redirected by Paypal.com…
Currently I was working on a simple Paypal payment system, which let our site user to buy credits via paypal and then redirected to our site again to confirm the deal. It was very simple and there was no problem at all when I was just trying with a single testing payment. However, the problem occurred when I tried to integrate it to our site — After the redirection, all stored session values were gone! It is important that I need to use USER_ID, stored after a user logged in in a session variable, to confirm the payment.
Therefore, I have searched a bit on the internet and realized that this is not that un-common. If only customer ID is needed, a simple solution would be adding a input field called “custom” to the form that you send to paypal. And its values can be whatever you want, eg, customer id. I did so and it worked for me eventually…
The site I was working on will be open for public in a few days, please check it (http://www.moosecatch.com) out and stay tunned with us if you like this idea!
May 8th, 2009 by Ming | No Comments »