Fix show payment based on country

This commit is contained in:
Emili Castells Guasch 2024-08-20 11:24:10 +02:00
parent 0127512535
commit 27fd033393

View file

@ -38,7 +38,9 @@ class LocalAlternativePaymentMethodsModule implements ModuleInterface {
add_filter(
'woocommerce_payment_gateways',
function ( $methods ) use ( $c ) {
$methods[] = $c->get( 'ppcp-local-apms.bancontact.wc-gateway' );
if ( is_admin() ) {
$methods[] = $c->get( 'ppcp-local-apms.bancontact.wc-gateway' );
}
return $methods;
}