Add wc payment gateway boilerplate

This commit is contained in:
Emili Castells Guasch 2024-08-08 14:24:47 +02:00
parent 7b22040710
commit a65d4fb2dc
3 changed files with 81 additions and 1 deletions

View file

@ -30,6 +30,10 @@ class LocalAlternativePaymentMethodsModule implements ModuleInterface {
}
public function run(ContainerInterface $c): void {
add_filter('woocommerce_payment_gateways', function ($methods) use ($c) {
$methods[] = $c->get('ppcp-local-apms.bancontact.wc-gateway');
return $methods;
});
}
}