Open dimitriBouteille opened 1 year ago
Hi @dimitriBouteille. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @magento give me 2.4-develop instance
Hi @dimitriBouteille. Thank you for your request. I'm working on Magento instance for you.
Hi @dimitriBouteille, here is your Magento Instance: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering Admin access: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering/admin_028a Login: ef78aade Password: a4c76a83165f
Hi @dimitriBouteille,
Thank you for reporting and collaboration.
Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.
Steps to reproduce
this mutation return The requested Payment Method is not available. error, but quote_payment.method column is updated with checkmo.
We have disabled checkmo method and checkmo method is not available
While Set payment method with setPaymentMethodOnCart mutation we are getting error The requested Payment Method is not available
We are not able to place the order with the Place order with placeOrder mutation.
Kindly recheck the behaviour on Magento 2.4-develop instance and elaborate steps to reproduce if the issue is still reproducible.
Thanks.
@magento give me 2.4-develop instance
Hi @dimitriBouteille. Thank you for your request. I'm working on Magento instance for you.
Hi @dimitriBouteille, here is your Magento Instance: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering Admin access: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering/admin_d02e Login: 2ab30941 Password: 93001eca67fc
Hi @engcom-Bravo
I just regaled the code a bit and actually I found this error message here \Magento\AsyncOrderGraphQl\Model\Cart\PlaceOrderAsync::execute()
which comes from the Magento_AsyncOrderGraphQl
module.
In my case, this module is not activated because no need. If you test disabled this module, you will reproduce the bug.
Hello @engcom-Bravo
Any news ?
Hi @dimitriBouteille,
Thanks for your update.
In our local instance also we don't have Magento_AsyncOrderGraphQl module.
We are not able to reproduce the issue.Is there any other way to reproduce the issue could you please elaborate the steps.
it might be possible the issue is resolved in the latest 2.4-develop branch. I request you to please try to reproduce the issue in the latest development branch.
Thanks.
@magento give me 2.4-develop instance
Hi @dimitriBouteille. Thank you for your request. I'm working on Magento instance for you.
Hi @dimitriBouteille, here is your Magento Instance: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering Admin access: https://a1fe3ae8511747381cac27ce90793387.instances-prod.magento-community.engineering/admin_2d05 Login: dd553271 Password: 40d8bb6926ea
Hi @engcom-Bravo,
I tried to reproduce the bug directly on the test env (https://github.com/magento/magento2/issues/37983#issuecomment-1733733696) and I managed to reproduce the bug again.
To reproduce the bug, you must execute the mutations setPaymentMethodOnCart
and placeOrder
at the same time! Here is an example of a graphql mutation that reproduces the bug:
mutation setPaymentMethodAndPlaceOrder(
$cartId: String!
$paymentMethod: PaymentMethodInput!
) {
setPaymentMethodOnCart(
input: { cart_id: $cartId, payment_method: $paymentMethod }
) {
cart {
selected_payment_method {
code
title
}
}
}
placeOrder(input: { cart_id: $cartId }) {
order {
order_number
}
}
}
{
"cartId": "{{cart_token}}",
"paymentMethod": {
"code": "checkmo"
}
}
Hi @dimitriBouteille,
Thanks for your update.
Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.
Even though the payment method checkmo is not available for setting up the payment method but when we execute mutations setPaymentMethodOnCart and placeOrder at the same time the order is placed successfully without setting the payment method.
Hence confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9605 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Hi @engcom-Bravo
Some news ?
can't duplicate in 2.4-develop:
can't duplicate in 2.4-develop:
The bug is reproducible again. Line 23 I can see the order_number with good increment ID. The placeOrder
request should be return The requested Payment Method is not available
.
Preconditions and environment
The bug is testable in graphQl with checkmo. However :
Steps to reproduce
setPaymentMethodOnCart
mutationthis mutation return
The requested Payment Method is not available.
error, butquote_payment.method
column is updated with checkmo.Expected result
When saving the payment method and placeOrder, the following error should be reported:
The requested Payment Method is not available.
When the
setPaymentMethodOnCart
mutation is called, there is an error, the quote_payment table should not be updated.\Magento\Quote\Model\Quote\Payment::importData()
Actual result
The order is created :(
Additional information
Release note
No response
Triage and priority