mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Do not check store currency when registering pui gateway
This commit is contained in:
parent
cf1384f5bd
commit
65c8cce2a6
1 changed files with 2 additions and 2 deletions
|
@ -231,7 +231,7 @@ class WCGatewayModule implements ModuleInterface {
|
||||||
add_action(
|
add_action(
|
||||||
'init',
|
'init',
|
||||||
function () use ( $c ) {
|
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();
|
( $c->get( 'wcgateway.pay-upon-invoice' ) )->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ class WCGatewayModule implements ModuleInterface {
|
||||||
$methods[] = $container->get( 'wcgateway.card-button-gateway' );
|
$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' );
|
$methods[] = $container->get( 'wcgateway.pay-upon-invoice-gateway' );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue