Skip to content

Commit

Permalink
Merge pull request #21 from ThePay/4185-get-account-transaction-histo…
Browse files Browse the repository at this point in the history
…ry-fix

fixed X-Total-Count header
  • Loading branch information
AlexKratky authored Aug 19, 2022
2 parents c1bc51f + ec651a5 commit 7949f65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Service/ApiService.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function getAccountTransactionHistory(TransactionFilter $filter, $page =

$headers = $response->getHeaders();

return new TransactionCollection(Json::decode($response->getBody(), true), $page, $limit, (int) $headers['X-Total-Count:']);
return new TransactionCollection(Json::decode($response->getBody(), true), $page, $limit, (int) $headers['X-Total-Count']);
}

/**
Expand Down Expand Up @@ -205,7 +205,7 @@ public function getPayments(PaymentsFilter $filter, $page = 1, $limit = 25)

$headers = $response->getHeaders();

return new PaymentCollection($response->getBody(), $page, $limit, (int) $headers['X-Total-Count:']);
return new PaymentCollection($response->getBody(), $page, $limit, (int) $headers['X-Total-Count']);
}

/**
Expand Down

0 comments on commit 7949f65

Please sign in to comment.