From e99910117d2824e2d29a7151cb79e8ba20fca06c Mon Sep 17 00:00:00 2001
From: Philipp Stracker
Date: Mon, 9 Sep 2024 18:03:14 +0200
Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Accept=20any=20valid=20gat?=
=?UTF-8?q?eway=20instance=20via=20DI?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
modules/ppcp-axo-block/src/AxoBlockPaymentMethod.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/ppcp-axo-block/src/AxoBlockPaymentMethod.php b/modules/ppcp-axo-block/src/AxoBlockPaymentMethod.php
index 5ff68fd92..be23c3a8b 100644
--- a/modules/ppcp-axo-block/src/AxoBlockPaymentMethod.php
+++ b/modules/ppcp-axo-block/src/AxoBlockPaymentMethod.php
@@ -9,6 +9,7 @@ declare( strict_types = 1 );
namespace WooCommerce\PayPalCommerce\AxoBlock;
+use WC_Payment_Gateway;
use Automattic\WooCommerce\Blocks\Payments\Integrations\AbstractPaymentMethodType;
use WooCommerce\PayPalCommerce\Axo\FrontendLoggerEndpoint;
use WooCommerce\PayPalCommerce\Button\Assets\SmartButtonInterface;
@@ -38,7 +39,7 @@ class AxoBlockPaymentMethod extends AbstractPaymentMethodType {
/**
* Credit card gateway.
*
- * @var CreditCardGateway
+ * @var WC_Payment_Gateway
*/
private $gateway;
@@ -75,7 +76,7 @@ class AxoBlockPaymentMethod extends AbstractPaymentMethodType {
*
* @param string $module_url The URL of this module.
* @param string $version The assets version.
- * @param CreditCardGateway $gateway Credit card gateway.
+ * @param WC_Payment_Gateway $gateway Credit card gateway.
* @param SmartButtonInterface|callable $smart_button The smart button script loading
* handler.
* @param Settings $settings The settings.
@@ -85,7 +86,7 @@ class AxoBlockPaymentMethod extends AbstractPaymentMethodType {
public function __construct(
string $module_url,
string $version,
- CreditCardGateway $gateway,
+ WC_Payment_Gateway $gateway,
$smart_button,
Settings $settings,
Environment $environment,