Sandbox Paypal工作正常,但Live不是

时间:2012-12-08 05:52:38

标签: php mysql paypal

我正在将这个课程用于我正在为每月付款的paypal集成开发的网站

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

我的沙盒帐户如何正常工作,但当我使用我的paypal真实帐户时,它无效。我正在使用电子邮件和ipn_log.txt文件来记录结果,即使它的错误,但在paypal LIVE的情况下,它没有记录任何东西或邮件。我已经在我的Paypal帐户上启用了IPN。但由于资金不足,我无法测试我的paypal现场帐户:(。这是我为Paypal Sandbox更改的代码和LIVE休息两者都相同。我也启用了我的paypal我的真实账户上的IPN。

        // 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 个答案:

答案 0 :(得分:0)

发现问题 - 我没有更改实时网站的通知网址。

相关问题