Enable OXXO/Credit Card button and add OXXO contact message

This commit is contained in:
dinamiko 2022-11-02 12:27:03 +01:00
parent c53ce3f434
commit 31f91cd976
4 changed files with 3 additions and 19 deletions

View file

@ -243,9 +243,7 @@ class WCGatewayModule implements ModuleInterface {
( $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();
}
);
@ -279,10 +277,6 @@ class WCGatewayModule implements ModuleInterface {
add_action(
'wc_ajax_ppc-oxxo',
static function () use ( $c ) {
if ( defined( 'PPCP_FLAG_OXXO' ) && PPCP_FLAG_OXXO === false ) {
return;
}
$endpoint = $c->get( 'wcgateway.endpoint.oxxo' );
$endpoint->handle_request();
}
@ -355,7 +349,7 @@ class WCGatewayModule implements ModuleInterface {
$methods[] = $container->get( 'wcgateway.pay-upon-invoice-gateway' );
}
if ( defined( 'PPCP_FLAG_OXXO' ) && PPCP_FLAG_OXXO === true && 'MX' === $shop_country ) {
if ( 'MX' === $shop_country ) {
$methods[] = $container->get( 'wcgateway.oxxo-gateway' );
}