Paypal IPN:从不调用notify_url

时间:2016-10-09 16:43:15

标签: paypal paypal-ipn

我正在创建一个在线商店,一切似乎都很好,但我的指定notify_url似乎在付款成功后无法调用。

<?php
echo "
<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='charset' value='utf-8'>
<input type='hidden' value='$price' name='amount' />
<input name='currency_code' type='hidden' value='EUR' />
<input name='shipping' type='hidden' value='0.00' />
<input name='tax' type='hidden' value='0.00' />
<input name='return' type='hidden' value='$nddaff/refill.php' />
<input name='cancel_return' type='hidden' value='$nddaff/refill.php' />
<input name='notify_url' type='hidden' value='http://domain.com/validationpaypal.php' />
<input name='cmd' type='hidden' value='_xclick' />
<input name='business' type='hidden' value='test-facilitator@gmail.com'/>
<input name='item_name' type='hidden' value='$name' />
<input name='custom' type='hidden' value='id=$id&type=$type' />
<input name='lc' type='hidden' value='FR' />
<input name='bn' type='hidden' value='PP-BuyNowBF' />
<input name='sub' value='Buy Now - $price"."€' type='submit' /></form>";
?>

1 个答案:

答案 0 :(得分:0)

答案:

昨天paypal沙盒中有一个错误,今天一切正常!

感谢大家的帮助!