我將PayPal與IPN集成在一起(我曾在很多網站上完成此操作,之前從未遇到過這個問題。)我使用PHP Paypal IPN集成類 - Micah Carrick。IPN驗證失敗
我正在沙盒帳戶上測試它。 我從貝寶收到的所有數據都沒有問題。但總是IPN驗證失敗。
我在很多項目上都使用過相同的類,但從來沒有遇到過這個問題,請指導我,這個問題可能是什麼原因。
這是我在日誌文件中我得到:
[10/29/2012 5:02 AM] - FAIL: IPN Validation Failed.
IPN POST Vars from Paypal:
mc_gross=10.00, protection_eligibility=Eligible, address_status=confirmed, payer_id=LZ3J5RXT7ZRSW, tax=0.00, address_street=1 Main St, payment_date=03:02:41 Oct 29, 2012 PDT, payment_status=Completed, charset=windows-1252, address_zip=95131, first_name=AProfessionals, mc_fee=0.59, address_country_code=US, address_name=AProfessionals Inc, notify_version=3.7, custom=, payer_status=verified, [email protected], address_country=United States, address_city=San Jose, quantity=1, verify_sign=AV0bkFkV43dlmXuqlWjyHTfWE.SBANTBgLiHNABcsVQsMvyhdLQg8mTi, [email protected], txn_id=9ES74523RB953760X, payment_type=instant, last_name=Inc, address_state=CA, [email protected], payment_fee=0.59, receiver_id=NEV59MNUMBET6, txn_type=web_accept, item_name=Paypal Test Transaction, mc_currency=USD, item_number=, residence_country=US, test_ipn=1, handling_amount=0.00, transaction_subject=Paypal Test Transaction, payment_gross=10.00, shipping=0.00, ipn_track_id=74d5b2446aded,
IPN Response from Paypal Server:
HTTP/1.0 302 Found
Location: https://www.sandbox.paypal.com
Server: BigIP
Connection: close
Content-Length: 0
我試着IPN模擬器來檢查問題,我在我的日誌文件中得到這個錯誤:[29-Oct-2012 11:24:51 UTC] cURL錯誤:[77]問題與SSL CA證書(路徑?訪問權利?) –
您是否在請求中使用「主機」標題?你有沒有看到貝寶的這個通知? https://www.x.com/developers/community/blogs/pp_mts_robertg/action-required-update-your-ipn-pdt-scripts – dbellizzi
今天剛剛面臨同樣的問題。解決這篇文章:http://stackoverflow.com/questions/11746644/paypal-sandbox-ipn-always-returns-invalid/37630831#37630831 – Naguissa