diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 28855f9e3..1f86e58ad 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -93,7 +93,6 @@ return array( $payer_factory = $container->get( 'api.factory.payer' ); $order_endpoint = $container->get( 'api.endpoint.order' ); $subscription_helper = $container->get( 'subscription.helper' ); - $logger = $container->get( 'woocommerce.logger.woocommerce' ); $payments_endpoint = $container->get( 'api.endpoint.payments' ); $logger = $container->get( 'woocommerce.logger.woocommerce' ); $environment = $container->get( 'onboarding.environment' ); @@ -114,9 +113,8 @@ return array( $order_endpoint, $subscription_helper, $logger, - $payments_endpoint, - $logger, - $environment + $environment, + $payments_endpoint ); }, 'wcgateway.disabler' => static function ( $container ): DisableGateways { diff --git a/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php b/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php index 4bc956228..94799f0a4 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/class-creditcardgateway.php @@ -131,8 +131,8 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { * @param OrderEndpoint $order_endpoint The order endpoint. * @param SubscriptionHelper $subscription_helper The subscription helper. * @param LoggerInterface $logger The logger. - * @param PaymentsEndpoint $payments_endpoint The payments endpoint. * @param Environment $environment The environment. + * @param PaymentsEndpoint $payments_endpoint The payments endpoint. */ public function __construct( SettingsRenderer $settings_renderer, @@ -151,8 +151,8 @@ class CreditCardGateway extends \WC_Payment_Gateway_CC { OrderEndpoint $order_endpoint, SubscriptionHelper $subscription_helper, LoggerInterface $logger, - PaymentsEndpoint $payments_endpoint, - Environment $environment + Environment $environment, + PaymentsEndpoint $payments_endpoint ) { $this->id = self::ID;