diff --git a/modules/ppcp-wc-gateway/services.php b/modules/ppcp-wc-gateway/services.php index 422c54d27..c3ea342ac 100644 --- a/modules/ppcp-wc-gateway/services.php +++ b/modules/ppcp-wc-gateway/services.php @@ -2303,8 +2303,7 @@ return array( 'wcgateway.pay-upon-invoice-helper' => static function( ContainerInterface $container ): PayUponInvoiceHelper { return new PayUponInvoiceHelper( $container->get( 'wcgateway.checkout-helper' ), - $container->get( 'api.shop.country' ), - $container->get( 'wcgateway.pay-upon-invoice-product-status' ) + $container->get( 'wcgateway.settings' ) ); }, 'wcgateway.pay-upon-invoice-product-status' => static function( ContainerInterface $container ): PayUponInvoiceProductStatus { diff --git a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php index 93c22a6ce..5934ce5a5 100644 --- a/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php +++ b/modules/ppcp-wc-gateway/src/Helper/PayUponInvoiceHelper.php @@ -25,13 +25,6 @@ class PayUponInvoiceHelper { */ protected $checkout_helper; - /** - * The selected shop country. - * - * @var string - */ - protected $shop_country; - /** * The settings. * @@ -43,13 +36,11 @@ class PayUponInvoiceHelper { * PayUponInvoiceHelper constructor. * * @param CheckoutHelper $checkout_helper The checkout helper. - * @param string $shop_country The selected shop country. * @param Settings $settings The Settings. */ - public function __construct( CheckoutHelper $checkout_helper, string $shop_country, Settings $settings ) { + public function __construct( CheckoutHelper $checkout_helper, Settings $settings ) { $this->checkout_helper = $checkout_helper; - $this->shop_country = $shop_country; $this->settings = $settings; }