duanjinchi1982 2012-12-08 05:52
浏览 89
已采纳

Sandbox Paypal工作正常,但Live不是

i am using this class for a site i am developing for paypal integration for monthly payment

[http://www.micahcarrick.com/php-paypal-ipn-integration-class.html][1]

How ever its working fine with my sandbox account but when i use it with my paypal live account its not working . i am using an email and ipn_log.txt file for logging the results even if its error but in case of paypal LIVE its not logging any thing or mail . I have enabled IPN on my Paypal account as well .but i cant test my paypal live aaccount due to low funds :( . Here is the code i am changing for Paypal Sandbox and LIVE rest is same for both . I have also enabled my paypal IPN on my live account.

        // For Sandbox
        //$p->paypal_url = 'https://www.sandbox.paypal.com/cgi-bin/webscr';                     
       //testing paypal url
        $p->paypal_url = 'https://www.paypal.com/cgi-bin/webscr';     




       //In my class changing these lines 
       // open the connection to paypal
       $fp = fsockopen($url_parsed[host],"80",$err_num,$err_str,30); 

  //open the connection to sandbox
 // $fp = fsockopen ('ssl://www.sandbox.paypal.com', 443, $errno, $errstr, 30);
  • 写回答

1条回答 默认 最新

  • duanjie9630 2012-12-08 05:57
    关注

    Found out the problem - I haven't changed my notify URL for live site.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源