adyen-magento2: [PW-5682] Adjustment refund is not working for orders paid with Klarna

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Place an order with Klarna (klarna_account) and wait for it to be captured
  2. Go to invoice and click on Credit Memo action button
  3. Scroll down to Adjustment Refund, set a value and do not refund any items.
  4. Click on “Refund Online” button
  5. You will have the following error:

Notice: Undefined index: pspReference in /var/www/html/vendor/adyen/module-payment/Gateway/Response/PaymentRefundDetailsHandler.php on line 43

Expected behavior Adjustment refund should work properly with Klarna too.

Magento version 2.3.7

Plugin version 7.0.1

Screenshots

Screenshot 2021-08-03 at 18 01 31

Desktop (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version 91.0.4472.114

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (14 by maintainers)

Most upvoted comments

@manuel-EGO, @jonathanribas #1213 should resolve this issue, feel free to add a review to the PR 😃 Let me know if this works for you!

Hi @jonathanribas ,

We are going to start working on this ticket in our next sprint which starts next week Monday. We are going to keep you updated.

Best, Attila Adyen

Thanks for the log lines @jonathanribas. Then this could be related to the line item count while adjusting the refund amount. I’ve opened an internal ticket to look into it.