2015-11-17 31 views
0

這是在自定義的PHP電子商務應用程序中。我在接收和驗證PayPal IPN響應方面沒有任何問題,但從未返回,並且有賣家保護資格。PayPal IPN通知protection_eligibility =不合格

這是所產生的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="[email protected]"> 
    <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="[email protected]"> 
    <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)。

我需要更改我的帳戶或提交表單才能使用它?

回答

2

SOLUTION

no_shipping必須具有的0(提示用於可選送貨地址)或2(提示需要送貨地址)的值。沒有運輸的訂單不能享有賣家保護的資格。