Skip to content

Commit

Permalink
checkout
Browse files Browse the repository at this point in the history
  • Loading branch information
JanneAalto committed May 28, 2019
1 parent e960426 commit ea0cdca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/CheckoutFinland/Api.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php
namespace CheckoutFinland;

use function array_filter;
use function error_log;
use GuzzleHttp;
use Frc;
Expand Down Expand Up @@ -221,7 +222,12 @@ private static function arrayPick(array $keys, array $items):array {
}

private static function arrayFilter(array $items) {
return array_filter($items);
$arr = array_filter($items);
if (isset($items['vatPercentage']) && !isset($arr['vatPercentage'])) {
$arr['vatPercentage'] = $items['vatPercentage'];
}

return $arr;
}


Expand Down

0 comments on commit ea0cdca

Please sign in to comment.