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.57k stars 9.32k forks source link

Checkout with PayPal throws a "Something went wrong ......" error #28092

Closed chequille closed 3 months ago

chequille commented 4 years ago

Preconditions (*)

  1. Magento Version 2.4 -develop
  2. Paypal Sandbox Configuration Enabled
  3. InContext Checkout Disabled

Steps to reproduce (*)

  1. Do a Checkout
  2. Click Paypal Radio and Click on "Continue to Paypal" button

Expected result (*)

  1. Of course not showing this error, because PayPal is still opened and the order is processed till the end

Actual result (*)

  1. Getting this error after Pay Button is pressed, but the change to the PayPal site is still happening. errormessagepaypalpayment

I just installed my backups from 2.3.4 version and there it does not happen. So something within the 2.3.5-p1 update must be the reason for this.

Ok, the order is still processed but sorry, I do not want to see this error message, even if it is disappearing after a few seconds and the page is moving to PayPal sites.

Unfortunately, nothing logged in the log directory or in the the report directory.

m2-assistant[bot] commented 4 years ago

Hi @chequille. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@chequille do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


chequille commented 4 years ago

@magento give me 2.4-develop instance - upcoming 2.4.x release

magento-engcom-team commented 4 years ago

Hi @chequille. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @chequille, here is your Magento instance. Admin access: https://i-28092-2-4-develop.instances.magento-community.engineering/admin_d845 Login: 31c6188a Password: b042640d8753 Instance will be terminated in up to 3 hours.

chequille commented 4 years ago

Hi, I confirm it is happening as well on the 2.4-develop instance. Here is the screenshot errorondevinstance

Screenshot was made after the button "Continue to PayPal" was pressed.

Used my sandbox account and "InContext Checkout" is disabled.

If "InContext Checkout" is enabled, the error messages does not appear.

chequille commented 4 years ago

Any idea yet?

m2-assistant[bot] commented 4 years ago

Hi @prasannachelladurai90. 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:

prasannachelladurai-ziffity commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Magento instance deployment temporary unavailable due to service maintenance.

plastikschnitzer commented 4 years ago

As long as I see its not distracting the paypal checkout workflow.

With Website Payment Standard, the option "InContext Checkout" enabled @chequille described above is not available.

Quick and (very) dirty fix to hide the message from customers with css: .checkout-index-index .message.message-error div{display: none !important;}

chequille commented 4 years ago

Hi, this is relly quick and dirty. I thought to do so as well, but if a real error occurs, the message is also not shown. Therefore no solution. What I found is, that it does not happen every checkout. Sometimes it went through without showing the message, the next time it is showing. Maybe it has to do with the PayPal Sandbox??????

Nevertheless, as this error was not there in 2.3.4, there is some change somewhere cuasing this and therefore it needs to be investigated. My opinion!!

Best regards and stay healthy :-)

prasannachelladurai-ziffity commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @prasannachelladurai90. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @prasannachelladurai90, here is your Magento instance. Admin access: https://i-28092-2-4-develop.instances.magento-community.engineering/admin_57d9 Login: 367d4cbf Password: e07f143057ef Instance will be terminated in up to 3 hours.

prasannachelladurai-ziffity commented 4 years ago

Hi @chequille I tried to reproduce the issue in Magento 2.4 and it did not occur to me Please find the video attachment https://drive.google.com/open?id=1gN771KPKxUuRljOx7-PjUCBPAHrQN6aH. Am i missing something here ?

chequille commented 4 years ago

Sorry, can not acces the video.

prasannachelladurai-ziffity commented 4 years ago

Sorry I have granted Permission. You should able to see the Video now. And i did try multiple times going to Payment From Checkout.

chequille commented 4 years ago

Sorry, still saying no permission to open the video.

prasannachelladurai-ziffity commented 4 years ago

@chequille I think you should be able to view now

chequille commented 4 years ago

Sorry, no. Page is saying redirection error!?!?

prasannachelladurai-ziffity commented 4 years ago

@chequille Permission is set from My end and this is the Link https://drive.google.com/file/d/1gN771KPKxUuRljOx7-PjUCBPAHrQN6aH/view?usp=sharing Can you please try opening the Link again or Refreshing the Page?

chequille commented 4 years ago

It is not working grafik To which email address you set the permission. Google is saying no permission. Do not know whats happening here !?

chequille commented 4 years ago

In the picture it says Perrmission missing. I am logged in with the account for js@chequille.de

prasannachelladurai-ziffity commented 4 years ago

@chequille Ah the Permission is set to your gmail account "chequille22@gmail.com" can you please open it from your gmail

chequille commented 4 years ago

Hi Again, ok, now I got it. Question: where did you get this email from? Im wondering, because here in github i am logged in with another one !?!?!?!

Ok, back to the problem: it is clear, the error message does not occure if "InContext Checkout" is enabled. You have to disable "InContext" in the configuration of PayPal. Than you will get the error message, as I have it in my setup and as I could reproduce in the 2.4 develop instance.

Looking forward to hearing from you. Best regards, Jürgen

prasannachelladurai-ziffity commented 4 years ago

@chequille I Pasted the Drive link here and it automatically took the email.

And Coming to the Bug. I did try Disabling the InContext Checkout in Paypal Configuration image But i was unable to re create the issue During multiple checkouts Please refer to the Video Session https://drive.google.com/file/d/1cvBMHj_tDR2fDqfajhcCY34gkcQQFJIw/view?usp=sharing

chequille commented 4 years ago

Hi, sorry, the error occurs after pressing "Continue to Paypal", not as you did just selecting PayPal as payment method. Of course you will not see it.

So again, go on with the checkout and press continue to paypal.

Regards, Jürgen

chequille commented 4 years ago

https://drive.google.com/file/d/1J_s-eMnESuqrIEwU9Mw4i2zA1L_GTlPS/view?usp=sharing

Ok, this is now my video. After Pressing "Zahlungspflichtig bestellen" the error occurs before it is going to the PayPal site.

chequille commented 4 years ago

PS: of course "Zahlungspflichtig bestellen" is on your site "Continue to PayPal"

prasannachelladurai-ziffity commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @prasannachelladurai90. Thank you for your request. I'm working on Magento 2.4-develop instance for you

chequille commented 4 years ago

@prasannachelladurai90 Could you reporduce it now? Again the information: it does not happen in 2.3.4 Regards Chequille

prasannachelladurai-ziffity commented 4 years ago

@chequille Thanks for checking in. My magento instance seems to be down and i have requested for a new instance but haven't received one yet. Will get back to you once the instance is up.

prasannachelladurai-ziffity commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @prasannachelladurai90. Thank you for your request. I'm working on Magento 2.4-develop instance for you

Sutharsan27 commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @Sutharsan27. Thank you for your request. I'm working on Magento 2.4-develop instance for you

prasannachelladurai-ziffity commented 4 years ago

@chequille The issue is Reproduced on the 2.4-develop branch

https://i-28358-2-4-develop.instances.magento-community.engineering/

Please refer to attachment https://drive.google.com/open?id=1_WgX9rifH5l_Ud6thz3MS-E_rPPQU5J1

and i have also edited the steps to Recreate. Thanks for the inputs

magento-engcom-team commented 4 years ago

:white_check_mark: Confirmed by @prasannachelladurai90 Thank you for verifying the issue. Based on the provided information internal tickets MC-34638 were created

Issue Available: @prasannachelladurai90, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

sdzhepa commented 4 years ago

@magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @sdzhepa. Thank you for your request. I'm working on Magento 2.4-develop instance for you

chequille commented 4 years ago

Any news about this? When will it be fixed? Is there a workaround?

This prevents me to go online with the new shop and i have to stay with 1.9.x.x What is the status of this?

Regards, Jürgen

LLudas commented 4 years ago

Hello, this have nothing to do with paypal. I guess that this is checkout problem. But I can't figure out where yet. We have upgraded from Magento Comunity 2.3.4 to 2.3.5 and since first minute this issue didn't gone.

Here's the link to the video how everything is happening:

https://drive.google.com/file/d/1r20BS66GVjfGLwcBuWPiBIXSnqI2d1ms/view?usp=sharing

Email order is being sent but not possible for users to finish the purchase process.

ALSO in this case there are not created New Customers. The list stays empty after every order confirmation.

Is there any solution for that bug to be fixed? It would be great if anyone have some good ideas where to look. Thank you.

chequille commented 4 years ago

@LLudas Hi, but this must be some other problems, as on my site the purchase finished. And as you see in my video above, there is only the error message shown when PayPal is used as payment method. When using f.e. banktransfer the error does not occur.

Did you check the error logs? It might be some incomatibility with your theme or used extensions. So on my site, it is definetely only with paypal. Regards, Chequille

zeeshan2523806 commented 4 years ago

Hi, i can confirm this error is also being reproduced on other payment methods as well. any luck with the solution ?

chequille commented 4 years ago

@zeeshan2523806 ok, but question: is on your site the order processed till the end or not as @LLudas reported?

This is a main difference, because on my site, I do only get this error message shown for a few seconds and afterwards it is going to PayPal site and I make my payment and get at the end the checkout success page.

How is it on your site?

chequille commented 4 years ago

Hi Guys, it is coming to a very important state, because my customer is forcing me to go online with the new shop latest 1 July 2020. As a matter of facts, I do need a solution for this.

What I found is, that it seems to be a browser issue, because I tried as well with Chrome and the error message does not occur. On Firefox, the error is in costumer-data.js of the Magento_Customer module. Maybe this helps to find at least a workaround.

Please be so kind and let me know how this issue is handled and maybe somebody has already a patch which I could use.

Looking forward to hearing from you soon. Best regards, Chequille

plastikschnitzer commented 4 years ago

Its a true nightmare for those who have to migrate and are faced with such a bug.

As I said above, I migrated a while ago and hided the error message by css – a very quick and dirty fix as Paypal still works in my case and the error message is useless here. I think with my code you still see a red box, so just change the background color of that box or find the correct class to hide all of that.

Downside: All other payment method related error are also hidden. No problem if you only have paypal or payment methods which cannot throw any error message ;-)

If you want to be more specific and only hide the paypal error message, you can build a little more advanced filter by javascript and just hide the paypal error message and and not the others, this link might be helpful for you: https://stackoverflow.com/questions/46790860/hide-div-that-contains-specific-text

Maybe I will build it like this soon and I will share the result, but I am packed now with other post-migration bugs so no time to work on things like this atm.

ezzyloud commented 4 years ago

Any updates on this guys? It's the only thing stopping my new store. Thank you

dev-Dhaval commented 4 years ago

I am also facing same issue. Its related to get-totals.js that file is not return cart total data that's why its throwing this error. If i removed below line from get-totals.js then its working fine. deferred.reject();

This error is only visible on firefox browser.

In chrome browser this cart total data is coming from storage but somehow its not working for firefox.