Adyen / adyen-magento2

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

[ECP-8985] Credit memo is not working for the Adyen Payments #2511

Closed nareshanjuru closed 9 months ago

nareshanjuru commented 9 months ago

Making your own contribution is easy, encouraged and greatly appreciated! We will put effort into reviewing and merging your PR quickly. For more info, please refer to the contribution guidelines: https://github.com/Adyen/adyen-magento2/blob/develop/CONTRIBUTING.md

Describe the bug Placed an order using Adyen credit card. Captured the amount from the Magento admin While creating the credit memo getting the below error and Creditmemo failing

Deprecated Functionality: Creation of dynamic property Adyen\Payment\Gateway\Request\RefundDataBuilder::$openInvoiceHelper is deprecated in /var/www/magento/vendor/adyen/module-payment/Gateway/Request/RefundDataBuilder.php on line 50

To Reproduce Steps to reproduce the behavior:

  1. Place an order in the website using Adyen Credit card
  2. Go to the Magento admin. Fulfill the order by doing shipment and invoice.
  3. Go to the credit memo and create the credit memo and click Refund.
  4. See error Deprecated Functionality: Creation of dynamic property Adyen\Payment\Gateway\Request\RefundDataBuilder::$openInvoiceHelper is deprecated in /var/www/magento/vendor/adyen/module-payment/Gateway/Request/RefundDataBuilder.php on line 50

Expected behavior The system should allow the creation of the CreditMemo without any error.

Magento version 2.4.6-p3

Plugin version 9.0.7

Screenshots When we are trying to create creditmemo and click refund. the below image is coming and unable to proceed further to create the credit memo.

image

Desktop (please complete the following information): All browsers

Smartphone (please complete the following information): All devices

Additional context Add any other context about the problem here.

hossam-adyen commented 9 months ago

Hi @nareshanjuru, thanks for opening this issue, I'm closing it as it's a duplicate of https://github.com/Adyen/adyen-magento2/issues/2487 and we already fixed it with this PR