PayPal IPN:状态"重试"即使听众有效

时间:2016-06-01 15:33:23

标签: paypal paypal-ipn

我有一个非localhost侦听器URL。

使用PayPal沙箱。

PayPal IPN历史记录显示"正在重试"的状态。没有HTTP返回码。

IPN模拟器ALWAYS报告成功,即使我使用非听众网址。

禁用自动反转。

禁用PDT。

按钮HTML:

        <form id="paypal_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" enctype="application/x-www-form-urlencoded" accept-charset="UTF-8">

            <input name="cmd" value="_cart" type="hidden">
            <input name="upload" value="1" type="hidden">
            <input name="address_override" value="0" type="hidden">
            <input name="charset" value="utf-8" type="hidden">
            <input name="business" value="xxxxx-facilitator@freenet.de" type="hidden">
            <input name="notify_url" value="http://example.com/?babor=ipn_verify" type="hidden">
            <input name="return" value="http://example.com/danke-fur-ihren-einkauf" type="hidden">
            <input name="cancel_return" value="http://example.com/" type="hidden">
            <input id="item_name_1" name="item_name_1" value="" type="hidden">
            <input id="item_number_1" name="item_number_1" value="" type="hidden">
            <input id="amount_1" name="amount_1" value="" type="hidden">
            <input name="currency_code" value="EUR" type="hidden">
            <input id="email" name="email" value="" type="hidden">
            <input id="no_shipping" name="no_shipping" value="0" type="hidden">
            <input name="country" value="DE" type="hidden">

            <input name="rm" value="2" type="hidden">

            <input name="amount_1" value="10" type="hidden">
            <input name="item_quantity_1" value="1" type="hidden">
            <input name="item_name_1" value="Gutschein" type="hidden">

            <img src="https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_37x23.jpg"><button type="submit" id="payment_button">Buy Now</button>

        </form>

任何线索?

1 个答案:

答案 0 :(得分:0)

URL肯定是有效的,但是您的脚本必然会发生某种错误,导致它将500响应发送回PayPal而不是200.这将导致它重试。

按照how to test PayPal IPN中文章中列出的步骤操作,您就可以找到问题。

相关问题