0

当用户尝试在我的网站上下订单时,我收到此错误。它偶尔会发生一次。

付款交易失败。原因 您提交了无效的 XML 请求。请验证您的请求并重试交易。结帐类型 onepage

> exception 'Mage_Core_Exception' with message 'You submitted an invalid
> XML request. Please verify your request and retry the transaction.' in
> /var/www/vhosts/domain.ca/httpdocs/app/Mage.php:594 Stack trace:
> #0 /var/www/vhosts/domain.ca/httpdocs/app/code/local/Mage/Optimalpayments/Model/PaymentMethod.php(161):
> Mage::throwException('You submitted a...')
> #1 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order/Payment.php(408):
> Mage_Optimalpayments_Model_PaymentMethod->capture(Object(Mage_Sales_Model_Order_Payment),
> '175.14')
> #2 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order/Invoice.php(385):
> Mage_Sales_Model_Order_Payment->capture(Object(Mage_Sales_Model_Order_Invoice))
> #3 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order/Payment.php(569):
> Mage_Sales_Model_Order_Invoice->capture()
> #4 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order/Payment.php(375):
> Mage_Sales_Model_Order_Payment->_invoice()
> #5 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order/Payment.php(317):
> Mage_Sales_Model_Order_Payment->capture(NULL)
> #6 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order.php(877):
> Mage_Sales_Model_Order_Payment->place()
> #7 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Order.php(1095):
> Mage_Sales_Model_Order->_placePayment()
> #8 [internal function]: Mage_Sales_Model_Order->place()
> #9 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Model/Resource/Transaction.php(105):
> call_user_func(Array)
> #10 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Model/Resource/Transaction.php(159):
> Mage_Core_Model_Resource_Transaction->_runCallbacks()
> #11 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Service/Quote.php(189):
> Mage_Core_Model_Resource_Transaction->save()
> #12 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Sales/Model/Service/Quote.php(249):
> Mage_Sales_Model_Service_Quote->submitOrder()
> #13 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Checkout/Model/Type/Onepage.php(774):
> Mage_Sales_Model_Service_Quote->submitAll()
> #14 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Checkout/controllers/OnepageController.php(511):
> Mage_Checkout_Model_Type_Onepage->saveOrder()
> #15 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419):
> Mage_Checkout_OnepageController->saveOrderAction()
> #16 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250):
> Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
> #17 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176):
> Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
> #18 /var/www/vhosts/domain.ca/httpdocs/app/code/core/Mage/Core/Model/App.php(354):
> Mage_Core_Controller_Varien_Front->dispatch()
> #19 /var/www/vhosts/domain.ca/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
> #20 /var/www/vhosts/domain.ca/httpdocs/index.php(71): Mage::run('', 'store')
> #21 {main}
4

1 回答 1

0

看起来您用于最优支付的第 3 方支付处理模块Mage_Optimalpayments(看看行161中的代码

app/code/local/Mage/Optimalpayments/Model/PaymentMethod.php

这将告诉您为什么 Magento 模块认为它收到了无效的 XML。您可以从那里进一步调试。我会联系模块开发人员寻求支持。

于 2012-10-17T18:17:23.277 回答