Empty offline payment method listener fixed..
This commit is contained in:
parent
0c4c28075e
commit
86205c5a18
|
|
@ -16,6 +16,10 @@ class ShowAsPaymentMethod
|
|||
{
|
||||
$methods = json_decode(setting('offline-payments.methods'), true);
|
||||
|
||||
if (empty($methods)) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($methods as $method) {
|
||||
$event->modules->payment_methods[] = $method;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue