Skip to content

Commit

Permalink
Merge pull request #158 from paynl/feature/PLUG-600
Browse files Browse the repository at this point in the history
Update issue icon-url
  • Loading branch information
woutse authored Aug 24, 2021
2 parents e9dc87e + b2e4d07 commit 2fddb33
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,11 @@ public function getIconUrl($methodCode, $paymentOptionId)
case 'medium': $iconsize = '50x50'; break;
}
}
$url = 'https://static.pay.nl/payment_profiles/'.$iconsize.'/' . $paymentOptionId . '.png';
$iconUrl = trim($this->store->getConfig('payment/paynl/iconurl'));
$iconUrl = empty($iconUrl) ? $url : $iconUrl;
$iconUrl = 'https://static.pay.nl/payment_profiles/' . $iconsize . '/' . $paymentOptionId . '.png';
$customUrl = trim($this->store->getConfig('payment/paynl/iconurl'));
if (!empty($customUrl)) {
$iconUrl = str_replace('#paymentOptionId#', $paymentOptionId, $customUrl);
}
}

return $iconUrl;
Expand Down

0 comments on commit 2fddb33

Please sign in to comment.