Skip to content

Commit

Permalink
Merge pull request #91 from Affirm/hotfix/PT-4155
Browse files Browse the repository at this point in the history
Hotfix: Fixes missing currency code error
  • Loading branch information
taehyunlim authored Nov 3, 2022
2 parents cc36b30 + 6a205e1 commit e42535b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ protected function getApiKeyNameByCurrency($currency_code)
self::CURRENCY_CODE_USD => '',
);

if (isset($currency_code)) {
if (array_key_exists($currency_code, $currencyCodeToSuffix)) {
$_suffix = $currencyCodeToSuffix[$currency_code] ?: '';
}
return $_suffix;
Expand Down

0 comments on commit e42535b

Please sign in to comment.