Skip to content

Commit

Permalink
fix payment processor interface missing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaymo committed Dec 9, 2024
1 parent 293f86f commit 4938698
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Payment/PaymentService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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';
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 4938698

Please sign in to comment.