diff --git a/Helper/AdyenOrderPayment.php b/Helper/AdyenOrderPayment.php index d8c2336d6d..249716ebfc 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());