adyen-magento2: [PW-4236] Payment stuck on Payment Review

Describe the bug Payment is fine on Adyen’s side but stuck on “Payment Review” on Magento’s side

To Reproduce This has been seen with PayPal (1755943111120959), Klarna (4755947294427622) and Mastercard (4355960853227246). Everything is fine ou Adyen’s side, no particular flow (no 3DS)

Comment history for Klarna transaction :

Jul 14, 2020 2:26:31 PM Processing Customer Not Notified
    Adyen Payment Successfully completed
    
    Jul 14, 2020 2:26:31 PM Pending Customer Not Notified
    Payment is authorised waiting for capture
    
    Jul 14, 2020 2:26:31 PM Pending Customer Not Notified
    Adyen HTTP Notification(s):
    eventCode: AUTHORISATION
    pspReference: 4755947294427622
    paymentMethod: klarna
    success: true
    reason:klarna
    
    Jul 14, 2020 2:25:17 PM Customer Not Notified
    Adyen Result URL response:
    authResult: AUTHORISED
    pspReference: 4755947294427622
    paymentMethod: klarna
    
    Jul 14, 2020 2:23:56 PM Pending Customer Notified

Logs for Klarna and Mastercard payments : Klarna_pending.log mc_pending.log

As you can see, nothing triggers me here everything seems to be correctly processed. To be noted, the merchant is having old versions of both Magento (2.2.2) and Adyen’s plugin (4.0.3)

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (5 by maintainers)

Most upvoted comments

This is still an issue, any news about how to fix this?

I’ve encountered the same issue with up-to-date versions of the software. Magento version: 2.3.4-p2 Adyen version: 6.2.0

Notifications are processed by the cron Model in the module and the associated logs are stating the order state was changed to processing. However, the order state itself is still on ‘Payment Review’, both in the sales_order and in sales_order_grid table. The last history amendment for this credit card order is: “We will authorize <amount> after the payment is approved at the payment gateway.” Furthermore, an invoice was created on the Magento side with a status of “Paid”, but the order itself is still on “Payment Review”.

@YanP-Adyen I’ve been communicating with Adyen support about this, if there’s any result coming out of it, I’ll make sure to post our resolution to this issue for you.

@tieroom Seems to me orders are never processed anymore if issues arise in the redirect flow. #815 is a good example of this, since the callback is never picked up by the module when that issue crops up, and as such the cron simply never processes a notification anymore. In the case of that specific, the orders aren’t even available on the Adyen portal. Didn’t check the cron logs but I’m fairly sure during #815 there is no notification sent to the cron in the first place.

When I responsed to the issue above, 6.5.0 wasn’t out yet. We didn’t really got the issue resolved with support, but at some point the issues just stopped cropping up. Issues occured again with the token length in the GET request as reported in #815, but once we got that resolved the cron is processing notifications and is mutating orders as expected again.