Skip to content

Commit

Permalink
Update Data.php
Browse files Browse the repository at this point in the history
[TASK] change the return from getCountrCodeFromVAT to upper-case to get validation true
  • Loading branch information
roman204 authored Feb 22, 2022
1 parent 84b6159 commit 8b8922a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function isCountryCodeInVAT($vatNumber)
*/
public function getCountryCodeFromVAT($vatNumber)
{
return substr(str_replace(' ', '', trim($vatNumber)), 0, 2);
return strtoupper(substr(str_replace(' ', '', trim($vatNumber)), 0, 2));
}

/**
Expand Down

0 comments on commit 8b8922a

Please sign in to comment.