![]() |
How to $_GET on Paypal success transaction - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to $_GET on Paypal success transaction (/showthread.php?tid=12751) |
How to $_GET on Paypal success transaction - El Forum - 10-30-2008 [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=123456¶m2=123456¶m3=123456¶m4=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 How to $_GET on Paypal success transaction - El Forum - 10-30-2008 [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. How to $_GET on Paypal success transaction - El Forum - 10-30-2008 [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. How to $_GET on Paypal success transaction - El Forum - 10-31-2008 [eluser]johnwbaxter[/eluser] Why? Do you have to use $_GET for something? |