How to $_GET on Paypal success transaction |
[eluser]achilez[/eluser]
Hi, Im new here, I have a website that accepts credit card via paypal, I have a problem on getting the information from paypal when the transaction is successful. Example: http://www.mysite.com/return/?param1=123...am4=123456 how can i get the value of param1, param2, param3 etc? because i want to save it on db. I tried getting the values via $_GET like below and it didn't work: print_r($_GET); I know that CI get rid of $_GET function for security reasons. Just want to know how to get those values in easy as 123. Hope that you can help me ![]() Thanks Archie Mercader http://www.outsourceincebu.com http://www.powersearchengine.net http://www.myyahogle.com http://www.adrinclexpn.com http://www.americandreamreview.com
[eluser]johnwbaxter[/eluser]
You should use post instead of get (which you can enable when you send the values to paypal) then when paypal hits your IPN url you can simply save the $_POST (write the results of print_r to a file) array to see what values are passed back.
[eluser]achilez[/eluser]
ok thanks, i got it. I also plan to create a new php file and populate the $_GET function and convert it to URI so that it would be easier for CI to get the parameters.
|
Welcome Guest, Not a member yet? Register Sign In |