php - PayPal IPN 通知 Protection_eligibility=Ineligible

标签 php paypal paypal-ipn

这是一个自定义 PHP 电子商务应用程序。我在接收和验证 PayPal IPN 响应时没有遇到任何问题,但它永远不会以卖家保护资格返回。

这是生成的 IPN 提交表单:

该问题的数据已被替换为虚拟数据,但它是应用程序中的合法数据

<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="item_name" value="Order #123456789">
    <input type="hidden" name="item_number" value="123456789">
    <input type="hidden" name="invoice" value="123456789">
    <input type="hidden" name="amount" value="50.00">
    <input type="hidden" name="first_name" value="John">
    <input type="hidden" name="last_name" value="Smith">
    <input type="hidden" name="contact_phone" value="123 123 1234">
    <input type="hidden" name="payer_email" value="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="21425452554e4c445361464c40484d0f424e4c" rel="noreferrer noopener nofollow">[email protected]</a>">
    <input type="hidden" name="address_country" value="Canada">
    <input type="hidden" name="address_country_code" value="CA">
    <input type="hidden" name="address_city" value="Test City">
    <input type="hidden" name="address_name" value="John Smith">
    <input type="hidden" name="address_state" value="Provice">
    <input type="hidden" name="address_street" value="123 Test Street">
    <input type="hidden" name="address_zip" value="A1B 2C3">
    <input type="hidden" name="no_shipping" value="1">
    <input type="hidden" name="address_status" value="confirmed">
    <input type="hidden" name="currency_code" value="CAD">
    <input type="hidden" name="return_url" value="http://custom-ecommerce-app.com/thank-you.html">
    <input type="hidden" name="protection_eligibility" value="SellerProtection">
    <input type="hidden" name="cmd" value="_xclick">
    <input type="hidden" name="notify_url" value="http://custom-ecommerce-app.com/paypal-ipn-notify.php">
    <input type="hidden" name="custom" value="">
    <input type="hidden" name="business" value="<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b5c5d4ccd8d0dbc1c6f5d6c0c6c1dad898d0d6dad8d8d0c7d6d098d4c5c59bd6dad8" rel="noreferrer noopener nofollow">[email protected]</a>">
    <input type="hidden" name="no_note" value="1">
    <input type="hidden" name="lc" value="CA">
    <input type="hidden" name="bn" value="PP-BuyNowBF">
</form>

在收到的 IPN 响应中,protection_eligibility 始终为 Ineligible。无论有没有沙箱,都会发生这种情况。企业/收件人帐户已配置为保护卖家。

我尝试使用与沙盒客户帐户的个人资料信息相同的地址信息生成提交表单,但得到了相同的结果(不合格)。

我需要在我的帐户或提交表单中更改哪些内容才能使其生效?

最佳答案

解决方案

no_shipping 的值必须为 0(提示输入可选的送货地址)或 2(提示输入必需的送货地址)。不送货的订单没有资格获得卖家保护。

关于php - PayPal IPN 通知 Protection_eligibility=Ineligible,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33762734/

相关文章:

PayPal Sandbox API SSL握手错误突然开始使用PayPal PHP SDK?

php - 在标签或存档页面上时,博客菜单链接设置为当前页面

php - "Notice: Undefined variable"、 "Notice: Undefined index"、 "Warning: Undefined array key"和 "Notice: Undefined offset"使用 PHP

magento - PayPal IPN 回发失败

php - 未调用 PayPal 订阅/Notify_URL(在沙盒下工作)

php - 不再支持 PayPal IPN 和 fsockopen?

用于取消计费协议(protocol)的 Paypal IPN

Php/Perl/Python/Shell 脚本根据某些字符的存在来重命名文件

php - 蛋糕PHP : how to get an array of elements from a web form

paypal - 如何在activemerchant gem中允许不同于美元的货币?