Skip to content

Commit 9975c73

Browse files
issue #372
1 parent 4a1d36d commit 9975c73

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Model/ConfigProvider/Method/Creditcard.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,12 @@ public function formatIssuers()
153153
self::XPATH_CREDITCARD_ALLOWED_CREDITCARDS,
154154
\Magento\Store\Model\ScopeInterface::SCOPE_STORE)
155155
);
156-
156+
157+
$cards = [];
157158
foreach ($allowed as $key => $value) {
158-
$cards[] = $allCreditcard[$value];
159+
if (isset($allCreditcard[$value])) {
160+
$cards[] = $allCreditcard[$value];
161+
}
159162
}
160163

161164
usort($cards, function ($cardA, $cardB){

0 commit comments

Comments
 (0)