php - Paypal IPN 完全没有响应

标签 php forms paypal paypal-ipn

有人遇到这个问题吗?突然 paypal 没有将 POST 数据返回到 notify_url。数组完全为空,当通过新的 paypal 结账系统 付款时会发生这种情况。

alt text


下面是付款后的最终页面。当我点击继续预订时,它应该重定向到带有 POST 数据的 notify_url 以进行验证和其他内容,但数据是一个空数组。

alt text

下面列出了我的请求代码。任何人都可以看一下它并告诉我是否缺少某些变量或者我做错了什么?

<form method="post" name="paypal_form" action="http://www.sandbox.paypal.com/cgi-bin/webscr">

    <input type="hidden" name="business" value="ayaz.a_1286483626_biz@gmail.com" />
    <input type="hidden" name="cmd" value="_xclick" />
    <!-- the next three need to be created -->    
    <input type="hidden" name="return" value="https://system1.smanager.net/SM/lib/booking_system/response.php" />
    <input type="hidden" name="cancel_return" value="https://system1.smanager.net/SM/lib/booking_system/paypal_ipn.php?cancelled=true" />
    <input type="hidden" name="notify_url" value="https://system1.smanager.net/SM/lib/booking_system/response.php" />
    <input type="hidden" name="rm" value="2" />
    <input type="hidden" name="currency_code" value="USD" />

    <input type="hidden" name="lc" value="US" />
    <input type="hidden" name="bn" value="toolkit-php" />
    <input type="hidden" name="cbt" value="Continue Back to Booking System" />

    <!-- Payment Page Information -->
    <input type="hidden" name="no_shipping" value="" />
    <input type="hidden" name="no_note" value="1" />
    <input type="hidden" name="cn" value="Comments" />
    <input type="hidden" name="cs" value="" />


    <!-- Product Information -->
    <input type="hidden" name="item_name" value="TestProduct" />
    <input type="hidden" name="amount" value="10.23" />
    <input type="hidden" name="quantity" value="1" />
    <input type="hidden" name="item_number" value="1234" />
    <input type="hidden" name="undefined_quantity" value="" />
    <input type="hidden" name="on0" value="" />
    <input type="hidden" name="os0" value="" />
    <input type="hidden" name="on1" value="" />

    <input type="hidden" name="os1" value="" />

    <!-- Shipping and Misc Information -->
    <input type="hidden" name="shipping" value="0.0" />
    <input type="hidden" name="shipping2" value="" />
    <input type="hidden" name="handling" value="" />
    <input type="hidden" name="tax" value="6" />
    <input type="hidden" name="custom" value="somedata" />
    <input type="hidden" name="invoice" value="" />

    <!-- Customer Information -->

    <input type="hidden" name="first_name" value="ayaz" />
    <input type="hidden" name="last_name" value="alavi" />
    <input type="hidden" name="address1" value="Address" />
    <input type="hidden" name="address2" value="" />
    <input type="hidden" name="city" value="" />
    <input type="hidden" name="state" value="abc" />
    <input type="hidden" name="zip" value="" />
    <input type="hidden" name="email" value="ayaz.a_1286483582_per@gmail.com" />
    <input type="hidden" name="night_phone_a" value="" />

    <input type="hidden" name="night_phone_b" value="" />
    <input type="hidden" name="night_phone_c" value="" />

</form>
</body>

谢谢。

最佳答案

我也遇到了同样的问题。

请在您的企业帐户中进行以下设置。

在网站支付偏好中

=> 自动返回:开启

=> 设置返回 URL

=> 支付数据传输:开启。

请试试这个,这可能对你有帮助。

祝一切顺利

汉字

关于php - Paypal IPN 完全没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3931852/

相关文章:

javascript - php简单联系表单-在页面刷新时停止提交

Paypal HTML 集成问题(未显示经常性付款的销售税)

Paypal IPN 获取空的 POST 数据

c# - 如何以编程方式在 Recurly 中创建和兑换优惠券?

php - 在注册页面上使用 ajax 提交表单

php - Wordpress 不允许我在 div 中隐藏自定义字段?

php - 启动和停止hiveserver2

php - 如何从 php 中的平面结构有效地构建树?

php - 搜索引擎优化/PHP : How to Convert Form-Submit URL (Get-Method) without Javascript SEO-Friendly?

javascript - Prototype 最好的字段验证插件是什么?