我已经使用代码https://github.com/Quixotix/PHP-PayPal-IPN设置了一个简单的 IPN
但是,当我运行以下
<?php
include('ipnlistener.php');
$listener = new IpnListener();
$listener->use_sandbox = true;
try {
$verified = $listener->processIpn();
} catch (Exception $e) {
// fatal error trying to process IPN.
exit(0);
}
if ($verified) {
if ($verified) {
mail('myemail@gmail.com', 'Verified IPN', $listener->getTextReport());
}
else {
/*
An Invalid IPN *may* be caused by a fraudulent transaction attempt. It's
a good idea to have a developer or sys admin manually investigate any
invalid IPN.
*/
mail('myemail@gmail.com', 'Invalid IPN', $listener->getTextReport());
}
}
?>
我没有从我的服务器收到任何邮件说它从 Paypal 获得了 IPN