Adyen / adyen-magento2

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

[ECP-9154][ECP-9491] Excessive network usage while making a virtual purchase #2581

Open embolden opened 5 months ago

embolden commented 5 months ago

Describe the bug When placing an order for a virtual product adyen.js makes ~100 calls to each of dfp.1.0.0.html, fingerprintjs2.js, and risk.1.0.0.js. This transfers 2.8MB over the network. Purchasing a physical product makes ~6 calls on the same environment.

To Reproduce Steps to reproduce the behavior: Assuming a clean Magento 2 installation with only the Adyen plugin installed and a sample virtual product.

  1. Add virtual product to cart
  2. Go to checkout
  3. Observe network tab

Expected behavior I would expect that 1 call would be sufficient for these.

Magento version 2.4.6-p4

Plugin version 9.3.0

Screenshots Sorry for the resolution - Github limits to 10MB. https://github.com/Adyen/adyen-magento2/assets/1679978/0a04b624-5149-45c8-90c6-7adaadbc84a7

Desktop (please complete the following information):

candemiralp commented 5 months ago

Hello @embolden,

Thank you for raising this issue. We've created an internal investigation ticket.

Best regards, Can

candemiralp commented 1 month ago

Hello @embolden,

We've successfully reproduced this issue. But considering the current priorities, we won't be able to provide a fix soon. However, as a temporary solution, you can disable risk data collection which triggers all of those calls.

Please add the following line to these configuration parameters.

risk: {
    enabled: false
}

You will be informed once we find an elegant solution to this issue.

Best regards, Can