diff --git a/src/app/lib/other/smarty/plugins/block.msp_issuers.php b/src/app/lib/other/smarty/plugins/block.msp_issuers.php
index 55cdd74..652f49f 100644
--- a/src/app/lib/other/smarty/plugins/block.msp_issuers.php
+++ b/src/app/lib/other/smarty/plugins/block.msp_issuers.php
@@ -32,8 +32,6 @@ function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
-
-
if ($processor_data['processor_params']['mode'] == 'T') {
$test = true;
} else {
@@ -48,23 +46,25 @@ function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
$iDealIssuers = $msp->getIdealIssuers();
+ $idealselect = '
';
+ $idealselect .= '
';
return $idealselect;
}
-?>
\ No newline at end of file
+?>
diff --git a/src/app/lib/other/templater/plugins/block.msp_issuers.php b/src/app/lib/other/templater/plugins/block.msp_issuers.php
index 30674ba..652f49f 100644
--- a/src/app/lib/other/templater/plugins/block.msp_issuers.php
+++ b/src/app/lib/other/templater/plugins/block.msp_issuers.php
@@ -46,23 +46,25 @@ function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
$iDealIssuers = $msp->getIdealIssuers();
+ $idealselect = '';
+ $idealselect .= '';
- $idealselect = '';
+ if (!empty($iDealIssuers['issuers']['issuer'])) {
+ $idealselect .= '';
- if ($processor_data['processor_params']['mode'] == 'T') {
- foreach ($iDealIssuers['issuers'] as $issuer) {
- $idealselect .= '';
- }
- } else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
- $idealselect .= '';
+ if (!empty($issuer['code']['VALUE']) && !empty($issuer['description']['VALUE'])) {
+ $idealselect .= '';
+ }
}
}
- $idealselect .= '';
-
-
+ else {
+ // There are no banks available
+ $idealselect .= '';
+ }
+ $idealselect .= '
';
return $idealselect;
}
-?>
\ No newline at end of file
+?>
diff --git a/src/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php b/src/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
index 55cdd74..7a189d7 100644
--- a/src/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
+++ b/src/app/lib/vendor/smarty/smarty/libs/plugins/block.msp_issuers.php
@@ -32,8 +32,6 @@ function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
require_once (DIR_ROOT . '/app/payments/MultiSafepay.combined.php');
-
-
if ($processor_data['processor_params']['mode'] == 'T') {
$test = true;
} else {
@@ -48,23 +46,26 @@ function smarty_block_msp_issuers($params, $content, &$smarty, &$repeat)
$iDealIssuers = $msp->getIdealIssuers();
+ $idealselect = '';
+ $idealselect .= '';
- $idealselect = '';
+ if (!empty($iDealIssuers['issuers']['issuer'])) {
+ $idealselect .= '';
- if ($processor_data['processor_params']['mode'] == 'T') {
- foreach ($iDealIssuers['issuers'] as $issuer) {
- $idealselect .= '';
- }
- } else {
foreach ($iDealIssuers['issuers']['issuer'] as $issuer) {
- $idealselect .= '';
+ if (!empty($issuer['code']['VALUE']) && !empty($issuer['description']['VALUE'])) {
+ $idealselect .= '';
+ }
}
}
- $idealselect .= '';
-
-
+ else {
+ // There are no banks available
+ $idealselect .= '';
+ }
+ $idealselect .= '
';
return $idealselect;
}
-?>
\ No newline at end of file
+?>
+