Skip to content

Commit

Permalink
Fix timestamp on ListBalances (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
btwlouis authored Jan 19, 2025
1 parent 5bbcec4 commit 0a472c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/PayPalAPI/Reporting.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function listTransactions(array $filters, string $fields = 'all')
*/
public function listBalances(string $date = '', string $balance_currency = '')
{
$date = empty($date) ? Carbon::now()->toIso8601String() : Carbon::parse($date)->toIso8601String();
$date = empty($date) ? Carbon::now()->toIso8601ZuluString() : Carbon::parse($date)->toIso8601ZuluString();
$currency = empty($balance_currency) ? $this->getCurrency() : $balance_currency;

$this->apiEndPoint = "v1/reporting/balances?currency_code={$currency}&as_of_time={$date}";
Expand Down

0 comments on commit 0a472c8

Please sign in to comment.