-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#37983: Place order with disabled Payment method working #39937
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
magento/magento2#37983: Place order with disabled Payment method working #39937
Conversation
- prevent order placement with unavailable payment method
|
Hi @KrasnoshchokBohdan. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
- copyright and static test errors fix
|
@magento run all tests |
Updated the code to safely handle cases where the cart's payment object might be null. This prevents potential errors when accessing the payment method code for carts without a valid payment set.
|
@magento run all tests |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run all tests |
engcom-Hotel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @KrasnoshchokBohdan,
Thanks for the contribution!
Please refer to the below review comment and also please add some automated test in accordance to the DOD.
Thanks
Co-authored-by: Abhinav Pathak <[email protected]>
- Add unit tests for PlaceOrder functionality in QuoteGraphQl.
|
@magento run all tests |
|
@magento run Integration Tests, Unit Tests, Functional Tests CE |
|
Hello @KrasnoshchokBohdan, It seems you have made the changes according to the review comments, hence we are picking this PR for review. Thank You 😃 |
|
@magento run Unit Tests, WebAPI Tests |
engcom-Hotel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KrasnoshchokBohdan Some tests are still failing due to the PR changes. Moving back to Changes Requested bucket.
Thanks
- fix web api tests
|
Failed to run the builds. Please try to re-run them later. |
|
@magento run WebAPI Tests |
Update error messages in PlaceOrderTest to provide a consistent server error response
|
@magento run all tests |
|
Thank you for your contribution! Since you have marked this PR as draft moving this to On Hold bucket. Please feel free to move it to Review or let us know once done with changes. Thank you! |
|
Thank you for your contribution! The Magento core engineering team is working on the issue which you have addressed in this PR. Team will cherry pick the commits from your PR and may do further implementation to cover few more scenarios as needed. We will reach out to you if we need more information. For now, you can pause work on this PR. Thank you once again! |
|
Hello, As I can see this issue got fixed in the scope of the internal Jira ticket AC-9605 by the internal team Based on the Jira ticket, the target version is 2.4.9-beta1. Thanks |
Description (*)
I will leave here examples of mutations that I used.
createCustomer
generateCustomerToken
createEmptyCart (don't forget about Authentification)
addSimpleProductsToCart
setShippingAddressesOnCart
setBillingAddressOnCart
setShippingMethodsOnCart
setPaymentMethodOnCart + placeOrder
VARIABLES
{ "cartId": "SOMEID", "paymentMethod": { "code": "checkmo" } }Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)