Skip to content

Commit 6c11c9d

Browse files
schemas if null
1 parent d014f12 commit 6c11c9d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Model/Config/PaymentConfigProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function getConfig()
7272
$enabled_method[] = 'stcpay';
7373
}
7474

75+
$supported_networks = $this->scopeConfig->getValue('payment/moyasar_payments/schemes');
7576

7677

7778
$config = [
@@ -80,7 +81,7 @@ public function getConfig()
8081
'country' => $this->scopeConfig->getValue('general/country/default'),
8182
'store_name' => $this->getStoreName(),
8283
'domain_name' => $matches[1],
83-
'supported_networks' => explode(',', $this->scopeConfig->getValue('payment/moyasar_payments/schemes')),
84+
'supported_networks' => explode(',', $supported_networks ? $supported_networks : []),
8485
'methods' => $enabled_method,
8586
'version' => 'Moyasar Http; Magento Plugin v' . MoyasarHelper::VERSION
8687
];

0 commit comments

Comments
 (0)