Adyen / adyen-magento2

Adyen Payment plugin for Magento2
MIT License
150 stars 198 forks source link

[ECP-9327] Magento sending to Adyen the IP of our frontend proxy instead of the IP of the shopper #2673

Open acourtiol opened 2 weeks ago

acourtiol commented 2 weeks ago

Describe the bug Since the change introduced in version 8.19.1 with the PR 2101 the IP address sent by the extension to Adyen is the one from the frontend proxy if used in an headless setup instead of the one from the shopper. Rollbacking the changes from PR 2101 is fixing the issue.

To Reproduce Steps to reproduce the behavior:

  1. Use this extension after version 8.19.1 on a Magento headless
  2. Make an order
  3. On Magento BO the IP address of the shopper making the order is displayed
  4. On Adyen BO the IP address isn't the one from the shopper making the order but the one from the frontend proxy (BFF)

Expected behavior The shopper IP address should be the one appearing on the Adyen BO, else it breaks the anti-fraud logic based on IP addresses

Magento version 2.4.7

Plugin version 9.4.1

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Our headless frontend and BFF are hosted on AWS, proxying the requests to the Adobe Commerce API hosted on Adobe Commerce Cloud

candemiralp commented 5 days ago

Hello @acourtiol,

Thank you for creating this issue. We have created an internal investigation ticket. Once the investigation is done, you will be notified.

Best Regards, Can