简体   繁体   English

IPN未发送,并且握手未验证。 请检查您的信息

[英]IPN was not sent, and the handshake was not verified. Please review your information

I referred all the previous stackoverflow answers regarding this. 我提到了所有以前关于这个的stackoverflow答案。 but I am not clear what to do with my case. 但我不清楚该怎么办。

IPN was not sent, and the handshake was not verified. Please review your information.

This is the error I am getting when sending ipn message using ipn simulator.. 这是使用ipn模拟器发送ipn消息时出现的错误。

I am using the script from 我正在使用以下脚本

https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php https://github.com/paypal/ipn-code-samples/blob/master/paypal_ipn.php

I am just checking this with sandbox account 我只是用沙盒帐户检查

and I am not using https site. 而且我没有使用https网站。 I am using only http. 我只使用http。

even I tried 即使我尝试过

             CURLOPT_URL => $url,
                    CURLOPT_POST => TRUE,
                    CURLOPT_POSTFIELDS => http_build_query(array('cmd' => '_notify-validate') + $ipn_post_data),
                    CURLOPT_RETURNTRANSFER => TRUE,
                    CURLOPT_HEADER => FALSE,
                    CURLOPT_SSL_VERIFYPEER => TRUE,
                    CURLOPT_CAINFO => 'cacert.pem',

cacert.pem contains https://www.symantec.com/content/dam/symantec/docs/other-resources/verisign-class-3-public-primary-certification-authority-g5-en.pem cacert.pem包含https://www.symantec.com/content/dam/symantec/docs/other-resources/verisign-class-3-public-primary-certification-authority-g5-en.pem

even I changed the CURLOPT_SSL_VERIFYPEER to false but didn't work 即使我将CURLOPT_SSL_VERIFYPEER更改为false,但也无法正常工作

I don't know what to do please help 我不知道该怎么办,请帮忙

update: I removed everything in the listener page and put just file_put_contents("ipntest.txt", var_export($_POST, true)); 更新:我删除了侦听器页面中的所有内容,只放了file_put_contents(“ ipntest.txt”,var_export($ _ POST,true)); still the same error and ipntest.txt file is alse not created Thanks, 仍然相同的错误和ipntest.txt文件还没有创建谢谢,

As of now (March 2017) IPN Simulator doesn't seem to work at all. 截至目前(2017年3月),IPN Simulator似乎根本不起作用。 Use Sandbox accounts to initiate normal payment cycle; 使用沙盒帐户启动正常的付款周期; it does work. 它确实有效。

PayPal Sandbox is upgraded and only accept SSL connection with TLSv1.2 (TLS 1.1 and lower versions of SSL are not accepted). PayPal Sandbox已升级,仅接受与TLSv1.2的SSL连接(不接受TLS 1.1和较低版本的SSL)。 You would need to ensure your apacha / OpenSSL supports tlsv1.2, pls run the command on your terminal and verify: 您需要确保apacha / OpenSSL支持tlsv1.2,请在终端上运行命令并验证:

$ openssl s_client -connect api-3t.sandbox.paypal.com:443 

Typically upgrading your OpenSSL to 1.0.1 or higher would work. 通常,可以将OpenSSL升级到1.0.1或更高版本。

U Should Use te PayPal IPN Simulator. U应该使用PayPal IPN模拟器。 https://developer.paypal.com/developer/ipnSimulator/ https://developer.paypal.com/developer/ipnSimulator/

The PayPal IPN is nothing u have to CURL. PayPal IPN无需CURL。

PayPal sends a Basic $_POST to the defined Address. 贝宝将基本$ _POST发送到定义的地址。 so u just have to use $_POST['payment_type'] 所以你只需要使用$_POST['payment_type']

Sometimes u Need to header('HTTP/1.1 200 OK'); 有时u需要header('HTTP/1.1 200 OK'); .

In My Case the $_POST from a Test Looks like this. 就我而言,来自测试的$ _POST看起来像这样。

$._POST:{payment_type=instant&payment_date=Mon+May+30+2016+08%3A47%3A06+GMT+0200+%28Mitteleurop%E4ische+Sommerzeit%29&payment_status=Completed&address_status=confirmed&payer_status=verified&first_name=Scriptkiddie&last_name=StackOverflow&payer_email=buyer%40paypalsandbox.com&payer_id=TESTBUYERID01&address_name=John+Smith&address_country=United+States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San+Jose&address_street=123+any+street&business=seller%40paypalsandbox.com&receiver_email=seller%40paypalsandbox.com&receiver_id=seller%40paypalsandbox.com&residence_country=US&item_name=something&item_number=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&mc_gross_1=12.34&txn_type=web_accept&txn_id=136666829&notify_version=2.1&custom=xyz123&invoice=abc1234&test_ipn=1&verify_sign=AnKUojs05l5xK--wKubHCkCuzwmCAxnK4WCLxW3c2aUgJNx4ufcY8RSh}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM