I have recently done some scripting for paypal ipn payment gateway integration.
In the form I put notify_url and set the required information and test it. It is working in live and test mode ok with me.
Now in the script, paypal returns me VARIFIED and INVALID status.
When Its verified, I make the order status changed to completed and when its invalid, I dont change the status. Its working ok with me.
But after some experience with script, I found that I got payment in my paypal account but I order status not changed. I have created log file that what paypal returns and order id. I found that when status is invalid, I dont set the order status changed as my script does but I got the payment in my account.
So here question is in both cases I am getting payment then what is the use of paypal payment status?
- Code: Select all
if (eregi('VERIFIED', $info))
{
change order status query as completed
mail to customer and me
}
else
{
empty and send the error mail
}
http://mukeshvariya.blogspot.com

