diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 2f89d1625..ce2d04a05 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -148,7 +148,6 @@ return array( $settings = $container->get( 'wcgateway.settings' ); $environment = $container->get( 'onboarding.environment' ); $logger = $container->get( 'woocommerce.logger.woocommerce' ); - $payment_token_repository = $container->get( 'subscription.repository.payment-token' ); return new OrderProcessor( $session_handler, $order_endpoint, @@ -157,8 +156,7 @@ return array( $authorized_payments_processor, $settings, $logger, - $environment->current_environment_is( Environment::SANDBOX ), - $payment_token_repository + $environment->current_environment_is( Environment::SANDBOX ) ); }, 'wcgateway.processor.refunds' => static function ( $container ): RefundProcessor { diff --git a/modules/ppcp-wc-gateway/src/Processor/class-orderprocessor.php b/modules/ppcp-wc-gateway/src/Processor/class-orderprocessor.php index 5f09505e5..bb98463ae 100644 --- a/modules/ppcp-wc-gateway/src/Processor/class-orderprocessor.php +++ b/modules/ppcp-wc-gateway/src/Processor/class-orderprocessor.php @@ -106,7 +106,6 @@ class OrderProcessor { * @param Settings $settings The Settings. * @param LoggerInterface $logger A logger service. * @param bool $sandbox_mode Whether sandbox mode enabled. - * @param PaymentTokenRepository $payment_token_repository The payment token repository. */ public function __construct( SessionHandler $session_handler, @@ -116,8 +115,7 @@ class OrderProcessor { AuthorizedPaymentsProcessor $authorized_payments_processor, Settings $settings, LoggerInterface $logger, - bool $sandbox_mode, - PaymentTokenRepository $payment_token_repository + bool $sandbox_mode ) { $this->session_handler = $session_handler; @@ -128,7 +126,6 @@ class OrderProcessor { $this->settings = $settings; $this->sandbox_mode = $sandbox_mode; $this->logger = $logger; - $this->payment_token_repository = $payment_token_repository; } /**