Adyen / adyen-magento2

Adyen Payment plugin for Magento2
MIT License
155 stars 211 forks source link

[ECP-9098] PayPal not working when T&C's are not checked #2613

Open Axel29 opened 4 months ago

Axel29 commented 4 months ago

Describe the bug Paypal's popup loads indefinitely when the terms and conditions are required but not checked by the customer.

To Reproduce

  1. [ADMIN] Create checkout T&C (Stores > Settings > Terms and Conditions)
  2. [ADMIN] Make these T&C required (Stores > Settings > Configuration > Sales > Checkout > Checkout Options > Enable Terms and Conditions)
  3. [FRONTEND] Select PayPal as a payment method
  4. [FRONTEND] Click on the "PayPal" yellow button that opens the PayPal dialog that allows the customer to pay

Expected behavior PayPal's website is loaded and the customer can finalize the order.

Actual behavior

Magento version 2.4.5-p1

Plugin version 9.5.1

Desktop (please complete the following information):

Additional context Tried disabling every other module and going back to the Magento_Blank theme, didn't change anything. If the T&C are checked, the PayPal dialog loads correctly and the order can be placed.

Here's a video of the bug:

https://github.com/Adyen/adyen-magento2/assets/3015249/923a1d3e-fa0f-4ac0-89d1-a39f35e54aa5

RokPopov commented 4 months ago

Hi @Axel29

Thank you for reporting this issue. There was already a similar issue reported for GooglePay and ApplePay here. Altho the behaviour is different, we believe the underlying reason is the same for both issues. I am updating the internal ticket we created to investigate the issue with the additional information you reported.

I will be closing the ticket as of now. For the progress, you can track the original reported issue.

Kind regards, Rok

Axel29 commented 4 months ago

Hi @RokPopov ,

Thank you for the update. For your information, I tried the patch given in the other issue by sarfarazbheda but it didn't work out.