这是在自定义的PHP eCommerce应用程序中实现的。我没有问题,接收和验证一个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="customer@gmail.com">
<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="payments@custom-ecommerce-app.com">
<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。无论是否使用沙箱,都会发生这种情况。业务/收件人帐户配置为卖方保护。
我尝试使用与沙箱客户帐户的配置文件信息相同的地址信息生成提交表单,并得到相同的结果(Ineligible)。
我需要在我的帐户或提交表格中更改哪些内容才能起作用?
发布于 2015-11-19 23:51:16
溶液
no_shipping的值必须为0 (提示可选传送地址)或2 (提示发送所需的传送地址)。没有装运的订单不能得到卖方的保护。
https://stackoverflow.com/questions/33762734
复制相似问题