From 0fa08fa5d99a84d0957d9ff5d2047eb27b3b04c7 Mon Sep 17 00:00:00 2001 From: robsoned Date: Tue, 13 Aug 2024 12:11:31 +0000 Subject: [PATCH] handle empty card brands configuration --- Gateway/Transaction/GooglePay/Config/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gateway/Transaction/GooglePay/Config/Config.php b/Gateway/Transaction/GooglePay/Config/Config.php index f941f911..e1033cf4 100755 --- a/Gateway/Transaction/GooglePay/Config/Config.php +++ b/Gateway/Transaction/GooglePay/Config/Config.php @@ -56,7 +56,7 @@ public function getMerchantName() public function getCardBrands() { $brandsAllowed = []; - $creditCardBrandsSelected = explode(',', $this->getConfig(static::CARD_BRANDS)); + $creditCardBrandsSelected = explode(',', $this->getConfig(static::CARD_BRANDS) ?? ''); foreach ($creditCardBrandsSelected as $brand) { if (in_array(strtoupper($brand), static::GOOGLE_POSSIBLE_BRANDS)) { $brandsAllowed[] = strtoupper($brand);