Skip to content

Commit

Permalink
response without currency
Browse files Browse the repository at this point in the history
  • Loading branch information
veneliniliev committed Dec 17, 2020
1 parent bac8c06 commit fcff634
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ protected function verifyData()
/**
* това нямам идея защо така са го направили... но да :/
* @see 5.2 от документацията
* @note прави се само за TRTYPE = 90!
*/
if ($key == 'CURRENCY' && empty($responseFromBorica[$key])) {
if ($key == 'CURRENCY' && empty($responseFromBorica[$key]) && $responseFromBorica['TRTYPE'] == 90) {
$responseFromBorica['CURRENCY'] = 'USD';
}

Expand Down

0 comments on commit fcff634

Please sign in to comment.