2015-05-20 103 views

回答

0

最後,我在深入審查後發現瞭解決方案。這是由於請求中的「USER Agent」HTTP標頭。你可以在Ipn.php文件上更新它。單從這個函數替換下面的行應用程序/代碼/核心/法師/貝寶/型號/ Ipn.php(不要在覈心文件適用。它添加在本地目錄)

protected function _postBack(Zend_Http_Client_Adapter_Interface $httpAdapter) 

在行143(在Magento 1.8.1)

$httpAdapter->write(Zend_Http_Client::POST, $this->_config->getPaypalUrl(), '1.1', array(
       'Connection: close', 
      ), $sReq); 

替換

$httpAdapter->write(Zend_Http_Client::POST, $this->_config->getPaypalUrl(), '1.1', array(
       'Connection: Close', 'User-Agent: your_company_name' 
       ), $sReq);