私はnotify_urlを呼び出していないことを除いて正常に動作する単純なペイパル支払いスクリプトをテストしており、その理由がわかりません。URL は到達可能であり、サンドボックス IPN テストでも肯定的な結果が得られます。さらに奇妙なことに、同じドメインに、見事に機能する別のスクリプトがあります。コードは同一ではありませんが、同じ方法を使用しています。
これは、Paypal に支払いを送信するために使用されるフォームの html です。
form id="ppcheckout" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="pp">
<input type="hidden" value="_xclick" name="cmd">
<input id="business" type="hidden" value="xxx@gmail.com" name="business">
<input id="currency_code" type="hidden" value="EUR" name="currency_code">
<input type="hidden" value="http://www.mydomain.com/dir/ipn.php" name="notify_url">
<input id="return" type="hidden" value="http://www.mydomain.com/dir/" name="return">
<input id="cancel_return" type="hidden" value="http://www.mydomain.com/dir/" name="cancel_return">
<input type="hidden" value="1" name="amount">
<input type="hidden" value="Order from mysite" name="item_name">
<input type="hidden" value="1" name="invoice">
</form>
何が間違っているのか、何が欠けているのかを本当に理解することはできません。誰かがアイデアを持っていますか?
ありがとさよなら