diff --git a/src/Service/ApiService.php b/src/Service/ApiService.php index d7fef8d..4531059 100644 --- a/src/Service/ApiService.php +++ b/src/Service/ApiService.php @@ -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']); } /** @@ -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']); } /**