-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incomplete order created and payment succeeds despite errors in cart #39
Comments
vicgeralds
added a commit
to vicgeralds/nwt-magento2-checkout
that referenced
this issue
Jan 29, 2022
Fixes part of sveawebpay#39
vicgeralds
added a commit
to vicgeralds/nwt-magento2-checkout
that referenced
this issue
Jan 29, 2022
Fixes part of sveawebpay#39
nwtben
pushed a commit
that referenced
this issue
Sep 1, 2022
* [SC-153] Changed argument order - optional arguments must be last in PHP 8 Approved-by: Sergiu Moscalu
nwtben
pushed a commit
that referenced
this issue
Sep 1, 2022
* [SC-153] Changed argument order - optional arguments must be last in PHP 8 Approved-by: Sergiu Moscalu
I'm amazed that you still haven't done anything to address this, from what I can see. 😞 We have a workaround, checking that cart items are still available every 5 seconds while on the checkout page, but this still happened to us a few days ago:
Another order was placed at 07:29:02 UTC (almost 2 minutes earlier), ordering the last available item. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If one or more items become unavailable after initiating checkout, it's still possible to complete the order and any exception thrown while creating the order in Magento is ignored. The push order endpoint will first respond with 404 and when retried will create the order after the missing items have been removed from the quote.
This has happened to us several times. We became aware of the problem because customers contacted us when their order confirmation and amount invoiced or charged didn't match, sometimes after placing another order under the impression that their first was cancelled/unsuccessful.
This is quite likely to happen when promoting a few products at a specific time so that they quickly run out of stock.
Steps to reproduce
Expected result
No order placed. Friendly error message that helps customer understand what went wrong and how to proceed.
Actual result
Svea order created with total amount including unavailable item.
Incomplete order created in Magento (if there are other items in cart).
The text was updated successfully, but these errors were encountered: