为什么Magento创建订单但没有将其链接到Sage Pay交易?

时间:2015-01-13 14:44:11

标签: magento sagepay

我们为客户设置了一个Magento网站,并且使用Sage Pay Suite CE模块,大多数订单都正常运行,但我们遇到了一个表现非常奇怪的订单。我在Sage Pay孤立交易中收到以下法师错误:

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '48-0-1' for key 'PRIMARY'0000 : The Authorisation was Successful. 

奇怪的是,它实际上已经创建了订单,但似乎存在问题,它没有与之相关的任何Sage Pay详细信息。客户还声称已发送并将其标记为已完成,但现在已经回到处理状态,我无法将其标记为已完成。该商店也没有收到一封电子邮件通知他们订单已经创建,他们说客户没有,但这可能是一个Sage Pay电子邮件确认而不是Magento。

这可能与付款方式有关,因为他们让许多客户使用Coutts卡,此交易就是这样一个客户。另一件事是,如果我查看数据库中的Sagepaysuite_transaction表,该特定事务没有与之关联的订单ID,则将其设置为NULL。

非常感谢您提供的任何帮助。

亲切的问候罗斯

编辑 - 更多信息,从SagePaySuit获得一些堆栈跟踪信息

2014-12-30 13:28:07.000000 (1419946087.15) ERR: 
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '48-0-1' for key 'PRIMARY'' in /home/pixie/public_html/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /home/pixie/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /home/pixie/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#2 /home/pixie/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#3 /home/pixie/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#4 /home/pixie/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#5 /home/pixie/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#6 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php(564): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')
#7 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php(142): Mage_Catalog_Model_Resource_Product_Indexer_Price_Default->_movePriceDataToIndexTable()
#8 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(315): Mage_Catalog_Model_Resource_Product_Indexer_Price_Default->reindexEntity(Array)
#9 /home/pixie/public_html/app/code/core/Mage/CatalogInventory/Model/Observer.php(749): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexProductIds(Array)
#10 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_CatalogInventory_Model_Observer->reindexQuoteInventory(Object(Varien_Event_Observer))
#11 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_CatalogInventory_Model_Observer), 'reindexQuoteInv...', Object(Varien_Event_Observer))
#12 /home/pixie/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_model_ser...', Array)
#13 /home/pixie/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(191): Mage::dispatchEvent('sales_model_ser...', Array)
#14 /home/pixie/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#15 /home/pixie/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#16 /home/pixie/public_html/app/code/local/Ebizmarts/SagePaySuite/controllers/FormPaymentController.php(181): Mage_Checkout_Model_Type_Onepage->saveOrder()
#17 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Ebizmarts_SagePaySuite_FormPaymentController->successAction()
#18 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('success')
#19 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#20 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#21 /home/pixie/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#22 /home/pixie/public_html/index.php(87): Mage::run('', 'store')
#23 {main}

Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '48-0-1' for key 'PRIMARY'' in /home/pixie/public_html/lib/Zend/Db/Statement/Pdo.php:234
Stack trace:
#0 /home/pixie/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/pixie/public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/pixie/public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/pixie/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
#4 /home/pixie/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
#5 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php(564): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca...')
#6 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price/Default.php(142): Mage_Catalog_Model_Resource_Product_Indexer_Price_Default->_movePriceDataToIndexTable()
#7 /home/pixie/public_html/app/code/core/Mage/Catalog/Model/Resource/Product/Indexer/Price.php(315): Mage_Catalog_Model_Resource_Product_Indexer_Price_Default->reindexEntity(Array)
#8 /home/pixie/public_html/app/code/core/Mage/CatalogInventory/Model/Observer.php(749): Mage_Catalog_Model_Resource_Product_Indexer_Price->reindexProductIds(Array)
#9 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_CatalogInventory_Model_Observer->reindexQuoteInventory(Object(Varien_Event_Observer))
#10 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_CatalogInventory_Model_Observer), 'reindexQuoteInv...', Object(Varien_Event_Observer))
#11 /home/pixie/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_model_ser...', Array)
#12 /home/pixie/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(191): Mage::dispatchEvent('sales_model_ser...', Array)
#13 /home/pixie/public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249): Mage_Sales_Model_Service_Quote->submitOrder()
#14 /home/pixie/public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(785): Mage_Sales_Model_Service_Quote->submitAll()
#15 /home/pixie/public_html/app/code/local/Ebizmarts/SagePaySuite/controllers/FormPaymentController.php(181): Mage_Checkout_Model_Type_Onepage->saveOrder()
#16 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Ebizmarts_SagePaySuite_FormPaymentController->successAction()
#17 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('success')
#18 /home/pixie/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#19 /home/pixie/public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#20 /home/pixie/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#21 /home/pixie/public_html/index.php(87): Mage::run('', 'store')
#22 {main}

0 个答案:

没有答案