简体   繁体   English

付款后PayPal IPN无法运作

[英]PayPal IPN not work after payment

i have a problem with PayPal IPN. 我对PayPal IPN有问题。

I'm trying to test with sandbox, but it is as if it does not recognize the ipn.php file after payment. 我正在尝试使用沙盒进行测试,但是好像付款后它无法识别ipn.php文件。

I create a form that send the info to PayPal and 3 files: 我创建了一个将信息发送到PayPal和3个文件的表单:

name="return" -> confirm.php (work after payment)
name="cancel_return" -> cancel.php (work after payment)
name="notify_url" -> ipn.php (this not work after payment)

I'm using 2 file from PayPal guide: 我正在使用PayPal指南中的2个文件:

PaypalIPN.php -> link: https://github.com/paypal/ipn-code-samples/blob/master/php/PaypalIPN.php PaypalIPN.php->链接: https : //github.com/paypal/ipn-code-samples/blob/master/php/PaypalIPN.php

and ipn.php -> link: https://github.com/paypal/ipn-code-samples/blob/master/php/example_usage_advanced.php 和ipn.php->链接: https : //github.com/paypal/ipn-code-samples/blob/master/php/example_usage_advanced.php

I activated my account IPN from paypal website. 我从贝宝网站激活了我的帐户IPN。

After the payment on paypal i return on file confirm.php, if i cancel the payment on paypal i return on file cancel.php, but ipn.php not work. 在Paypal上付款后,我将退回文件Confirm.php,如果我取消在Paypal上付款,则将我退回文件cancel.php,但ipn.php无法正常工作。

Can you help me please? 你能帮我吗? Thank you so much. 非常感谢。

I just finished fighting through this process a few days ago. 几天前,我刚刚完成了此过程。 You can ditch paypal's guide because I fought with it and it didn't take me where I needed to go. 您可以放弃Paypal的指南,因为我与它进行了抗争,而这并没有带我去哪里。 Instead I would try this: https://gist.github.com/xcommerce-gists/3440401#file-completelistener-php 相反,我会尝试这样做: https : //gist.github.com/xcommerce-gists/3440401#file-completelistener-php

Also, you don't need to send the files with the form, all of that information can be placed in the button specifics, etc on the paypal site. 另外,您不需要发送带有表单的文件,所有这些信息都可以放在Paypal网站上的按钮详细信息中,等等。 You can place the url of your ipn.php file on the IPN simulator on paypals site and use that to play with your listener. 您可以将ipn.php文件的URL放置在paypals网站上的IPN模拟器上,并使用它与监听器一起播放。 Note that if any of the backend processes under the VERIFIED section are incorrect, the listener will not return a handshake, so test your php code out first before applying it. 请注意,如果VERIFIED部分下的任何后端进程不正确,则侦听器将不会返回握手,因此在应用它之前先测试您的php代码。

Other than that I'd have to see your actual code to help trouble shoot more. 除此之外,我还必须查看您的实际代码以帮助排除更多故障。

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

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