From e4e833191b7966b548fe0bf07a25eb27ee8e5b89 Mon Sep 17 00:00:00 2001 From: woutse Date: Wed, 13 Jul 2022 11:59:15 +0200 Subject: [PATCH] Replaced old syntax --- paynlpaymentmethods/paynlpaymentmethods.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paynlpaymentmethods/paynlpaymentmethods.php b/paynlpaymentmethods/paynlpaymentmethods.php index f4de506..cf30e65 100644 --- a/paynlpaymentmethods/paynlpaymentmethods.php +++ b/paynlpaymentmethods/paynlpaymentmethods.php @@ -252,7 +252,7 @@ public function hookActionOrderStatusPostUpdate($params) if ($transaction->isAuthorized()) { $this->payLog('Auto-capture', 'Starting auto-capture', $cartId, $transactionId); try { - $this->sdkLogin(); + PayHelper::sdkLogin(); \Paynl\Transaction::capture($transactionId); $this->payLog('Auto-capture', 'Capture success ', $transactionId); } catch (Exception $e) {