2012-10-17 78 views
0

當用戶嘗試在我的網站上下訂單時出現此錯誤。它偶爾會發生一次。由於XML請求無效,Magento中的付款交易失敗

付款交易失敗。原因 您提交了無效的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} 

回答

0

看起來你有最佳的款項(Mage_Optimalpayments)的第三方支付處理模塊發送XML到最佳服務器的付款不喜歡的最優付款服務器。參加

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

看看周圍線161代碼這會告訴你爲什麼Magento的模塊認爲它收到的無效XML。您可能能夠從那裏進一步調試。我會聯繫模塊開發人員尋求支持。

相關問題