-
Notifications
You must be signed in to change notification settings - Fork 33
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
Webhook receives payment info but no order was created #523
Comments
Wow. You take payment now before the order is created. Are you unfamiliar with the concept of order validation when the quote is submitted. Why would you do this? An item can be out of stock. A product could be disabled. You can't assume that the order will be created. |
@JuliosDnd you need to fix this please. We upgraded from 4.0.0 To 5.2.0 Why on Earth would you presume to create an order before the quote is validated? When you submit a quote, Magento submits it to its Quote Validator This eventually calls the QuoteValidationComposite For example, https://github.com/magento/magento2/tree/2.4-develop/app/code/Magento/Quote/Model/ValidationRules
It's also extensible, see https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Quote/etc/di.xml#L110-L120 If you're going to do something like this
The result? We have a load of users who paid us money and have no order. |
I sorted this out with a plugin on the checkout webhook. Some validation is put on |
v5.3.0 introduced a https://github.com/checkout/checkout-magento2-plugin/releases/tag/5.3.0 |
We've updated to 5.2 but we're having an issue where we are receiving payment authorisations and payment captures where no order exists. A quote exists, but no order. I have looked at the access logs for their IP, they definitely clicked the placeorder URL - actually, they clicked it multiple times.
The text was updated successfully, but these errors were encountered: