Closed karl-ravn closed 8 years ago
@karl-ravn , seems your problem not related to Magento functionality and relates to SaferPay
plugin.
If this behavior is reproducible with other Magento built-in payments, please, update details and reopen this issue.
In other case, please refer to the Community Forums or Magento Stack Exchange site for technical questions.
Seems to be same problem as #4580
The problem seems to be that the quote has been created with a reserved_order_id, but there already exists a row with the same increment_id in order_sales.
The error goes through: OrderManager#save(\Magento\Sales\Api\Data\OrderInterface $entity) OrderService#place(\Magento\Sales\Api\Data\OrderInterface $order) QuoteManagement#submitQuote(QuoteEntity $quote, $orderData = []) (line 478 Magento 2.0.5 $order = $this->orderManagement->place($order);)
This could be avoided if either QuoteManagement#submitQuote() or Quote#reserveOrderId() would do a sanity check that there are no order with a conflicting increment_id. If a conflict is found, just regenerate a new order id.
We just had this exact issue on Magento 2.07 using Braintree as our payment provider. Same steps to replicate the issue and since it was for a registered user, we had to manually remove the quote in the DB in order to allow them to create a new cart for checkout.
Anyone figured out a temp fix?
I'm having the same issue.
@bvboas as stated in https://github.com/magento/magento2/issues/4580 , commit https://github.com/magento/magento2/commit/fe97d9e4540741edb0abc876d169c1df60a06b70 should fix the issue. I didn't test it myself, but I'm looking into it as well.
When an order
Steps to reproduce
develop
branch.Expected result
Actual result
Stack trace