How to store the array values into database(mysql) after receiving them from paypal successfull payment complete transaction ?
i need an example here please help me out to solve this fuss. example should be easy, simple and well below is my form so tell how i can done this with proper example!
Anurag SarkarPosted Apr 28, 2015, 7:52 PM
I Think this should work....
It's not too complicated.
You got a sandbox account for testing already? If not, signup for seller/buyer test-account at sandbox.paypal.com. Maybe need different e-mail addresses for both, not sure.
1.) In your submit form enter the path to your IPN script e.g.
pp.notifiy.phpAlso in your PayPal merchant/sandbox account settings, specify the URL of your listener. The listener script must not be firewalled. It will receive $_POST from PayPal.
2.) After successful payment,
VERIFIEDto process the order and update your db.I prefer the cURL solution, as PayPal had changes recently, which caused some troubles, with the cURL solution it worked fine for me especially when sandbox testing. Need cURL extension to be active in PHP.
For the cURL solution, read more on PayPal Developer: How To Process Instant Payment Notification (IPN) Messages; the other solution, which I'd NOT recommend uses fsockopen.
Here are parts of my working cURL listener script (pp.notify.php)
This would work on the sandbox too. So best to do a couple of tests. You should get the
VERIFIEDand then process the order/update db. When all works fine, switch from sandbox to real PayPal and best to test that too at least once.I hope this helps for getting started!
kamal sooftphotonPosted Apr 28, 2015, 4:47 PM
anyways thanks for suggestions...
Anurag SarkarPosted Apr 28, 2015, 4:13 PM
http://www.dotnetfunda.com/articles/show/928/online-payments-using-paypal-integration-with-aspnet
Thanks