From 4938698abd5597d15861997c1d5e53391daca517 Mon Sep 17 00:00:00 2001 From: carmenmaymo Date: Mon, 9 Dec 2024 10:14:05 +0100 Subject: [PATCH] fix payment processor interface missing --- src/Payment/PaymentService.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Payment/PaymentService.php b/src/Payment/PaymentService.php index 7fca2368..2464a2ca 100644 --- a/src/Payment/PaymentService.php +++ b/src/Payment/PaymentService.php @@ -4,11 +4,10 @@ namespace Mollie\WooCommerce\Payment; +use Inpsyde\PaymentGateway\PaymentProcessorInterface; use Mollie\Api\Exceptions\ApiException; use Mollie\Api\Resources\Payment; -use Mollie\WooCommerce\Gateway\MolliePaymentGateway; use Mollie\WooCommerce\Gateway\MolliePaymentGatewayI; -use Mollie\WooCommerce\Gateway\Surcharge; use Mollie\WooCommerce\Notice\NoticeInterface; use Mollie\WooCommerce\PaymentMethods\PaymentMethodI; use Mollie\WooCommerce\SDK\Api; @@ -17,10 +16,9 @@ use Mollie\WooCommerce\Shared\SharedDataDictionary; use Mollie\WooCommerce\PaymentMethods\Constants; use Psr\Log\LoggerInterface as Logger; -use Psr\Log\LogLevel; use WC_Order; -class PaymentService +class PaymentService implements PaymentProcessorInterface { public const PAYMENT_METHOD_TYPE_ORDER = 'order'; public const PAYMENT_METHOD_TYPE_PAYMENT = 'payment'; @@ -89,7 +87,7 @@ public function setGateway($gateway) } - public function processPayment($order, $paymentGateway) + public function processPayment($order, $paymentGateway): array { $orderId = $order->get_id(); $redirectUrl = $this->gateway->get_return_url($order);