mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
Fix wrong disabling oxxo
This commit is contained in:
parent
d5e2d8585c
commit
e14fc10141
1 changed files with 3 additions and 5 deletions
|
@ -232,16 +232,14 @@ class WCGatewayModule implements ModuleInterface {
|
||||||
add_action(
|
add_action(
|
||||||
'init',
|
'init',
|
||||||
function () use ( $c ) {
|
function () use ( $c ) {
|
||||||
if ( defined( 'PPCP_FLAG_OXXO' ) && PPCP_FLAG_OXXO === false ) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( 'DE' === $c->get( 'api.shop.country' ) && 'EUR' === $c->get( 'api.shop.currency' ) ) {
|
if ( 'DE' === $c->get( 'api.shop.country' ) && 'EUR' === $c->get( 'api.shop.currency' ) ) {
|
||||||
( $c->get( 'wcgateway.pay-upon-invoice' ) )->init();
|
( $c->get( 'wcgateway.pay-upon-invoice' ) )->init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( defined( 'PPCP_FLAG_OXXO' ) && PPCP_FLAG_OXXO === true ) {
|
||||||
( $c->get( 'wcgateway.oxxo' ) )->init();
|
( $c->get( 'wcgateway.oxxo' ) )->init();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
add_action(
|
add_action(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue