如果客户在结账时注册帐户,Paypal 订单似乎会失败。 Magento 2 / 贝宝问题

问题描述 投票:0回答:0

当客户结帐并决定注册一个帐户时,当他们使用 Paypal 付款时(这不影响 Stripe 交易),当他们按下付款时,他们会收到以下错误(在空白页面上):

应用程序运行期间发生错误。有关详细信息,请参阅异常日志。

如果您随后按下浏览器后退按钮,它会显示“付款完成。点击返回网站。”当您这样做时,返回到 Magento 商店,一个红色横幅显示“订单无法完成”,并带您进入查看订单页面以再次下订单。但是付款已经完成。因此,我们收到大量重复订单。

当时的错误日志说:

[2023-04-28T14:46:27.907184+00:00] main.CRITICAL: Magento\Framework\Exception\NoSuchEntityException: Source item not found by source code: default and sku: SP75-1.0-0-CLS-5MTRS. in /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-inventory-source-deduction-api/Model/GetSourceItemBySourceCodeAndSku.php:59
Stack trace:
#0 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-inventory-source-deduction-api/Model/SourceDeductionService.php(87): Magento\InventorySourceDeductionApi\Model\GetSourceItemBySourceCodeAndSku->execute()
#1 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-inventory-shipping/Observer/SourceDeductionProcessor.php(115): Magento\InventorySourceDeductionApi\Model\SourceDeductionService->execute()
#2 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\InventoryShipping\Observer\SourceDeductionProcessor->execute()
#3 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\InventoryShipping\Observer\SourceDeductionProcessor\Interceptor->___callParent()
#4 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/m2epro/magento2-extension/Plugin/MSI/Magento/InventoryShipping/Observer/SourceDeductionProcessor.php(98): Magento\InventoryShipping\Observer\SourceDeductionProcessor\Interceptor->Magento\Framework\Interception{closure}()
#5 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/m2epro/magento2-extension/Plugin/AbstractPlugin.php(42): Ess\M2ePro\Plugin\MSI\Magento\InventoryShipping\Observer\SourceDeductionProcessor->processExecute()
#6 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/m2epro/magento2-extension/Plugin/MSI/Magento/InventoryShipping/Observer/SourceDeductionProcessor.php(86): Ess\M2ePro\Plugin\AbstractPlugin->execute()
#7 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): Ess\M2ePro\Plugin\MSI\Magento\InventoryShipping\Observer\SourceDeductionProcessor->aroundExecute()
#8 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\InventoryShipping\Observer\SourceDeductionProcessor\Interceptor->Magento\Framework\Interception{closure}()
#9 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/InventoryShipping/Observer/SourceDeductionProcessor/Interceptor.php(23): Magento\InventoryShipping\Observer\SourceDeductionProcessor\Interceptor->___callPlugins()
#10 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): Magento\InventoryShipping\Observer\SourceDeductionProcessor\Interceptor->execute()
#11 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Event/Invoker/InvokerDefault.php(74): Magento\Framework\Event\Invoker\InvokerDefault->_callObserverMethod()
#12 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Event/Manager.php(65): Magento\Framework\Event\Invoker\InvokerDefault->dispatch()
#13 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Framework/Event/Manager/Proxy.php(95): Magento\Framework\Event\Manager->dispatch()
#14 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Model/AbstractModel.php(837): Magento\Framework\Event\Manager\Proxy->dispatch()
#15 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Model/ResourceModel/Db/VersionControl/AbstractDb.php(56): Magento\Framework\Model\AbstractModel->afterSave()
#16 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Model/ResourceModel/Db/AbstractDb.php(402): Magento\Framework\Model\ResourceModel\Db\VersionControl\AbstractDb->processAfterSaves()
#17 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\Model\ResourceModel\Db\AbstractDb->save()
#18 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->___callParent()
#19 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/mageworx/module-ordersgrid/Plugin/Synchronize.php(26): Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->Magento\Framework\Interception{closure}()
#20 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(135): MageWorx\OrdersGrid\Plugin\Synchronize->aroundSave()
#21 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->Magento\Framework\Interception{closure}()
#22 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Sales/Model/ResourceModel/Order/Shipment/Interceptor.php(32): Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->___callPlugins()
#23 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-sales/Model/Order/ShipmentRepository.php(147): Magento\Sales\Model\ResourceModel\Order\Shipment\Interceptor->save()
#24 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Sales\Model\Order\ShipmentRepository->save()
#25 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Model\Order\ShipmentRepository\Interceptor->___callParent()
#26 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Model\Order\ShipmentRepository\Interceptor->Magento\Framework\Interception{closure}()
#27 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Sales/Model/Order/ShipmentRepository/Interceptor.php(41): Magento\Sales\Model\Order\ShipmentRepository\Interceptor->___callPlugins()
#28 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-sales/Model/ShipOrder.php(224): Magento\Sales\Model\Order\ShipmentRepository\Interceptor->save()
#29 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-sales/Model/OrderMutex.php(45): Magento\Sales\Model\ShipOrder->createShipment()
#30 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-sales/Model/ShipOrder.php(163): Magento\Sales\Model\OrderMutex->execute()
#31 [internal function]: Magento\Sales\Model\ShipOrder->execute()
#32 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php(95): call_user_func_array()
#33 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor->process()
#34 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor\Interceptor->___callParent()
#35 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor\Interceptor->Magento\Framework\Interception{closure}()
#36 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Webapi/Controller/Rest/SynchronousRequestProcessor/Interceptor.php(23): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor\Interceptor->___callPlugins()
#37 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-webapi/Controller/Rest.php(202): Magento\Webapi\Controller\Rest\SynchronousRequestProcessor\Interceptor->process()
#38 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Webapi\Controller\Rest->dispatch()
#39 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Webapi\Controller\Rest\Interceptor->___callParent()
#40 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Webapi\Controller\Rest\Interceptor->Magento\Framework\Interception{closure}()
#41 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Webapi/Controller/Rest/Interceptor.php(23): Magento\Webapi\Controller\Rest\Interceptor->___callPlugins()
#42 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/App/Http.php(116): Magento\Webapi\Controller\Rest\Interceptor->dispatch()
#43 /var/www/vhosts/hilltop-products.co.uk/htdocs/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http->launch()
#44 /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#45 /var/www/vhosts/hilltop-products.co.uk/htdocs/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#46 {main}

Next Magento\Framework\Exception\CouldNotSaveException: The shipment couldn't be saved. in /var/www/vhosts/hilltop-products.co.uk/htdocs/vendor/magento/module-sales/Model/Order/ShipmentRepository.php:150
Stack trace:

我们已经更新到最新版本的 Magento,但这并没有解决问题。

我们已经与 Paypal 进行了交谈,他们声称他们的 IPN 流程运行正常。

paypal magento2 checkout
© www.soinside.com 2019 - 2024. All rights reserved.