Magento - Gateway错误Authorize.net

时间:2013-09-26 15:44:04

标签: php magento authorize.net

当我尝试将付款发布到authorize.net时,获取“网关错误:无法读取响应或响应为空”。 Authorize.net看不到任何事情,主机提供商表示他们没有问题。

  • 我使用的是Authorize.net付款方式
  • 我已在默认,网站和商店视图中验证了我的API登录信息和转码ID
  • 我已安装cURL SSL
  • 我已经确认没有防火墙阻止连接。
  • 我不在testmode
  • 调试已打开,结果如下。

以下是exception.log文件的输出

2013-09-26T15:26:24+00:00 ERR (3): 
exception 'Mage_Core_Exception' with message 'Gateway error: Unable to read response,      or response is empty' in /app/Mage.php:595
Stack trace:
#0 /app/code/core/Mage/Paygate/Model/Authorizenet.php(1596): Mage::throwException('Gateway error: ...')
#1 /app/code/core/Mage/Paygate/Model/Authorizenet.php(594): Mage_Paygate_Model_Authorizenet->_postRequest(Object(Mage_Paygate_Model_Authorizenet_Request))
#2 /app/code/core/Mage/Paygate/Model/Authorizenet.php(436): Mage_Paygate_Model_Authorizenet->_place(Object(Strattas_Authnetcim_Model_Order_Payment), '44.53', 'AUTH_CAPTURE')
#3 /app/code/core/Mage/Sales/Model/Order/Payment.php(408): Mage_Paygate_Model_Authorizenet->capture(Object(Strattas_Authnetcim_Model_Order_Payment), '44.53')
#4 /app/code/core/Mage/Sales/Model/Order/Invoice.php(385): Mage_Sales_Model_Order_Payment->capture(Object(Mage_Sales_Model_Order_Invoice))
#5 /app/code/core/Mage/Sales/Model/Order/Payment.php(569): Mage_Sales_Model_Order_Invoice->capture()
#6 /app/code/core/Mage/Sales/Model/Order/Payment.php(375): Mage_Sales_Model_Order_Payment->_invoice()
#7 /home/morrell/public_html/app/code/core/Mage/Sales/Model/Order/Payment.php(317): Mage_Sales_Model_Order_Payment->capture(NULL)
#8 /app/code/core/Mage/Sales/Model/Order.php(877): Mage_Sales_Model_Order_Payment->place()
#9 /app/code/core/Mage/Sales/Model/Order.php(1406): Mage_Sales_Model_Order->_placePayment()
#10 [internal function]: Mage_Sales_Model_Order->place()
#11 /app/code/core/Mage/Core/Model/Resource/Transaction.php(105): call_user_func(Array)
#12 /app/code/core/Mage/Core/Model/Resource/Transaction.php(159): Mage_Core_Model_Resource_Transaction->_runCallbacks()
#13 /app/code/core/Mage/Sales/Model/Service/Quote.php(189): Mage_Core_Model_Resource_Transaction->save()
#14 /app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#15 /home/morrell/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(777): Mage_Sales_Model_Service_Quote->submitAll()
#16 /app/code/core/Mage/Checkout/controllers/OnepageController.php(567): Mage_Checkout_Model_Type_Onepage->saveOrder()
#17 /app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Checkout_OnepageController->saveOrderAction()
#18 /home/morrell/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
#19 /app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#20 /app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#21 /app/Mage.php(687): Mage_Core_Model_App->run(Array)
#22 /index.php(87): Mage::run('', 'store')
#23 {main}

2 个答案:

答案 0 :(得分:0)

事实证明我的主机上的名字服务器存在问题。我在这里使用了以下信息来解决这个问题:http://www.magentocommerce.com/boards/viewthread/50611/(引用的帖子可以在互联网档案中查看,这里https://web.archive.org/web/20150315055800/http://www.magentocommerce.com/boards/viewthread/50611

之后,我收到了与被阻止的IP相关的错误消息。我在工具(顶部菜单)>中的accounts.authorize.net添加了我的新IP。欺诈套件(左侧菜单)>授权的AIM IP地址(正文,倒数第二项)。

答案 1 :(得分:0)

我认为你在System-> Configuration-> PaymentMethods

中启用了测试模式