From 55769eea9c9d2757b3ae733c23a313295c9e76cb Mon Sep 17 00:00:00 2001 From: Philipp Stracker Date: Mon, 17 Feb 2025 18:09:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Remove=20unused=20State=20from?= =?UTF-8?q?=20CreditCardGateway?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/ppcp-wc-gateway/services.php | 1 - .../ppcp-wc-gateway/src/Gateway/CreditCardGateway.php | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 36b282129..2dc3c3e04 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -122,7 +122,6 @@ return array( $container->get( 'wcgateway.url' ), $container->get( 'session.handler' ), $container->get( 'wcgateway.processor.refunds' ), - $container->get( 'onboarding.state' ), $container->get( 'wcgateway.transaction-url-provider' ), $container->get( 'wc-subscriptions.helper' ), $container->get( 'api.endpoint.payments' ), diff --git a/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php b/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php index 2f1e997b5..76e53b0b5 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/CreditCardGateway.php @@ -19,7 +19,6 @@ use WooCommerce\PayPalCommerce\ApiClient\Endpoint\PaymentTokensEndpoint; use WooCommerce\PayPalCommerce\ApiClient\Exception\PayPalApiException; use WooCommerce\PayPalCommerce\ApiClient\Exception\RuntimeException; use WooCommerce\PayPalCommerce\WcGateway\Helper\Environment; -use WooCommerce\PayPalCommerce\Onboarding\State; use WooCommerce\PayPalCommerce\Session\SessionHandler; use WooCommerce\PayPalCommerce\Vaulting\PaymentTokenRepository; use WooCommerce\PayPalCommerce\Vaulting\VaultedCreditCardHandler; @@ -109,13 +108,6 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { */ private $refund_processor; - /** - * The state. - * - * @var State - */ - protected $state; - /** * Service to get transaction url for an order. * @@ -204,7 +196,6 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { * @param string $module_url The URL to the module. * @param SessionHandler $session_handler The Session Handler. * @param RefundProcessor $refund_processor The refund processor. - * @param State $state The state. * @param TransactionUrlProvider $transaction_url_provider Service able to provide view transaction url base. * @param SubscriptionHelper $subscription_helper The subscription helper. * @param PaymentsEndpoint $payments_endpoint The payments endpoint. @@ -226,7 +217,6 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { string $module_url, SessionHandler $session_handler, RefundProcessor $refund_processor, - State $state, TransactionUrlProvider $transaction_url_provider, SubscriptionHelper $subscription_helper, PaymentsEndpoint $payments_endpoint, @@ -247,7 +237,6 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { $this->module_url = $module_url; $this->session_handler = $session_handler; $this->refund_processor = $refund_processor; - $this->state = $state; $this->transaction_url_provider = $transaction_url_provider; $this->subscription_helper = $subscription_helper; $this->payments_endpoint = $payments_endpoint;