From 65c8cce2a6ee50fcc0f309e80e17264959998af3 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Wed, 10 Aug 2022 10:44:36 +0200 Subject: [PATCH] Do not check store currency when registering pui gateway --- modules/ppcp-wc-gateway/src/WCGatewayModule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ppcp-wc-gateway/src/WCGatewayModule.php b/modules/ppcp-wc-gateway/src/WCGatewayModule.php index 853670025..b6a30b4d1 100644 --- a/modules/ppcp-wc-gateway/src/WCGatewayModule.php +++ b/modules/ppcp-wc-gateway/src/WCGatewayModule.php @@ -231,7 +231,7 @@ class WCGatewayModule implements ModuleInterface { add_action( 'init', function () use ( $c ) { - if ( 'DE' === $c->get( 'api.shop.country' ) && 'EUR' === $c->get( 'api.shop.currency' ) ) { + if ( 'DE' === $c->get( 'api.shop.country' ) ) { ( $c->get( 'wcgateway.pay-upon-invoice' ) )->init(); } @@ -312,7 +312,7 @@ class WCGatewayModule implements ModuleInterface { $methods[] = $container->get( 'wcgateway.card-button-gateway' ); } - if ( 'DE' === $container->get( 'api.shop.country' ) && 'EUR' === $container->get( 'api.shop.currency' ) ) { + if ( 'DE' === $container->get( 'api.shop.country' ) ) { $methods[] = $container->get( 'wcgateway.pay-upon-invoice-gateway' ); }