douxi3404 2017-03-10 19:45
浏览 73

PayPal IPN付款后无效

i have a problem with PayPal IPN.

I'm trying to test with sandbox, but it is as if it does not recognize the ipn.php file after payment.

I create a form that send the info to PayPal and 3 files:

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:

PaypalIPN.php -> link: 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

I activated my account IPN from paypal website.

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.

Can you help me please? Thank you so much.

  • 写回答

1条回答 默认 最新

  • dousao6260 2017-03-25 13:36
    关注

    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. Instead I would try this: 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. 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. 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.

    Other than that I'd have to see your actual code to help trouble shoot more.

    评论

报告相同问题?

悬赏问题

  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)