magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

Placing order in Graphql using PayPal Express is slow #37676

Closed zexperto closed 1 year ago

zexperto commented 1 year ago

Preconditions and environment

Steps to reproduce

by Graphql 1- Get Customer Token 2- Get Customer Cart ID 3- add product to Cart 4- set the shipping address 5- set the shipping method 6- set the billing address 7- get PayPal token 8- set the Paymeth method with PayerId and Token 9- Place the order

the time to place the order took around 3.5 - 5 seconds

Expected result

placing the order should not take more than 1 to 2 seconds maximun

Actual result

it took at least 3.5 seconds

Additional information

everything standard no modules/no customization

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year 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:

m2-assistant[bot] commented 1 year ago

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:

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering Admin access: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering/admin_7192 Login: f898c799 Password: e3a798b3c77e

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering Admin access: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering/admin_417d Login: 7a9a88b4 Password: 481ae0add68b

engcom-Bravo commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Bravo, here is your Magento Instance: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering Admin access: https://cf04f0b74a7cbb6818e6196251cf89dd.instances-prod.magento-community.engineering/admin_8770 Login: 64a55669 Password: 3c3855739a82

engcom-Bravo commented 1 year ago

Hi @zexperto,

Thank you for reporting and collaboration.

We have tried to reproduce the issue on Magento 2.4-develop instance.

Steps to reproduce

by Graphql

We are not able to proceed further with placeOrder mutation could you please let us know we are missing anything.

Screenshot 2023-09-12 at 1 03 43 PM

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.

Screenshot 2023-09-12 at 1 12 40 PM

Could you please help us to proceed further.

Thanks.

zexperto commented 1 year ago

Hello @engcom-Bravo , the steps are correct, did you add the PayPal sandbox configuration in the backend? maybe this is the reason, I suggest to try first place an order by the frontend then try by the graphql

engcom-Bravo commented 1 year ago

Hi @zexperto,

Thanks for your update.

We have added PayPal sandbox configuration and it is working fine from the frontend and we are able to place the order. Similar issue has been confirmed here https://github.com/magento/magento2/issues/37824 we need to close this issue as Duplicate of this one https://github.com/magento/magento2/issues/37824. Kindly move onto this issue for latest updates / solutions on the same.

Thanks.