From 555555b63fe185828ac861b1cf114b1b22f2f55b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Tytu=C5=82a?= Date: Tue, 19 Mar 2024 08:27:51 +0100 Subject: [PATCH] Fixed order payment saving --- Helper/AdyenOrderPayment.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Helper/AdyenOrderPayment.php b/Helper/AdyenOrderPayment.php index d8c2336d6..249716ebf 100644 --- a/Helper/AdyenOrderPayment.php +++ b/Helper/AdyenOrderPayment.php @@ -212,6 +212,7 @@ public function createAdyenOrderPayment(Order $order, Notification $notification try { $date = new \DateTime(); $adyenOrderPayment = $this->adyenOrderPaymentFactory->create(); + $this->orderPaymentResourceModel->load($adyenOrderPayment, $pspReference, 'pspreference'); $adyenOrderPayment->setPspreference($pspReference); $adyenOrderPayment->setMerchantReference($merchantReference); $adyenOrderPayment->setPaymentId($payment->getId());