Closed zexperto closed 11 months ago
Hi @zexperto. 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 @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://2ad3c28fd6c4f46878e9fffe6eb11bed.instances-prod.magento-community.engineering Admin access: https://2ad3c28fd6c4f46878e9fffe6eb11bed.instances-prod.magento-community.engineering/admin_8853 Login: 995dc35f Password: b7b7517a4ee3
Hi @zexperto,
Thank you for reporting and collaboration.
We have tried to reproduce the issue on Magento 2.4-develop instance.
Steps to reproduce
using Graphql
We are able to set the Payment methods
We are not able to proceed further with placeOrder mutation could you please let us know we are missing anything.
We are getting error Unable to place order: A server error stopped your order from being placed. Please try to place your order again.
As per this document https://developer.adobe.com/commerce/webapi/graphql/schema/cart/mutations/place-order/ we will get this error when we don't have products in cart but we have products in cart.
Could you please help us to proceed further.
Thanks.
Hi, I also face the same issue and my magento version is Magento ver. 2.4.5-p1. These are the steps to reproduce the issue
01.Create an Empty Cart mutation { createEmptyCart }
mutation { setGuestEmailOnCart(input: { cart_id: "test" email: "test@gmail.com" }) { cart { email } } }
03.Add products
mutation { addConfigurableProductsToCart( input: { cart_id: "test" cart_items: [ { parent_sku: "2018-test" data: { quantity: 1 sku: "100-test-AI" } } ] } ) { cart { items { uid quantity product { name sku } ... on ConfigurableCartItem { configurable_options { option_label } } } } } }
{ cart(cart_id: "test") { email items { id product { name sku } quantity errors { code message } } } }
05.setShippingAddressesOnCart
mutation { setShippingAddressesOnCart( input: { cart_id: "test" shipping_addresses: [ { address: { firstname: "ss" lastname: "sst" company: "Company Name" street: ["test"] city: "Los Angeles" region: "CA" region_id: 12 postcode: "90210" country_code: "US" telephone: "123-456-0000" save_in_address_book: false } } ] } ) { cart { shipping_addresses { firstname lastname company street city region { code label } postcode telephone country { code label } available_shipping_methods{ carrier_code carrier_title method_code method_title } } } } }
mutation { setBillingAddressOnCart( input: { cart_id: "test" billing_address: { address: { firstname: "ss" lastname: "sst" company: "Company Name" street: ["64 Strawberry Dr", "Beverly Hills"] city: "Los Angeles" region: "CA" region_id: 12 postcode: "90210" country_code: "US" telephone: "123-456-0000" save_in_address_book: true } } } ) { cart { billing_address { firstname lastname company street city region{ code label } postcode telephone country { code label } } } } }
07.setShippingMethodsOnCart
mutation { setShippingMethodsOnCart(input: { cart_id: "test" shipping_methods: [ { carrier_code: "custom-1" method_code: "custom" } ] }) { cart { shipping_addresses { selected_shipping_method { carrier_code method_code carrier_title method_title } } } } }
08.createPaypalExpressToken
mutation { createPaypalExpressToken( input: { cart_id: "test" code: "paypal_express" express_button: true urls: { return_url: "paypal-return" cancel_url: "paypal-cancel" } } ) { token paypal_urls { start edit } } }
09.setPaymentMethodOnCart
mutation { setPaymentMethodOnCart(input: { cart_id: "test" payment_method: { code: "paypal_express" paypal_express: { payer_id: "test123" token: "VB-test" } } }) { cart { selected_payment_method { code title } } } }
mutation { placeOrder( input: { cart_id: "test" } ) { order { order_number } } }
Order is able to place using these process but Order email is taken as the Paypal account email address which was used to sign in.
Found the solution and I hope this will help for all. There is a patch for this already. https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-1-29/acsd-49849-customer-email-was-replaced-with-paypal-email.html?lang=en
@sheyandckap Thanks for your contribution & collaboration over here
Hi @zexperto,
Kindly refer this document https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-1-29/acsd-49849-customer-email-was-replaced-with-paypal-email.html?lang=en there is a patch already released.
Similar issue has been confirmed here https://github.com/magento/magento2/issues/37824
Hence we are closing this issue.
Thanks.
Preconditions and environment
Steps to reproduce
using Graphql
Expected result
the Order email should be Customer Email "paypal@magento.com"
Actual result
the Customer email in the order and in the addresses is the buyer email which is not correct
Additional information
No response
Release note
No response
Triage and priority