Skip to content

Commit

Permalink
Merge pull request #177 from paypay/curtisfennerpaypay/check-wallet-b…
Browse files Browse the repository at this point in the history
…alance

Fix #152: Fix 401 unauthorized for `checkWalletBalance`
  • Loading branch information
curtisfennerpaypay authored Dec 17, 2021
2 parents 8cee63a + c6632ca commit f256e10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controllers/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ public function checkWalletBalance($userAuthorizationId, $amount, $currency, $pr
throw new ClientControllerException(false, "Invalid Direct Debit Product Type", 500);
}
}
$url = $this->api_url . $this->main()->GetEndpoint('WALLET_BALANCE');
$url = $this->api_url . $this->main()->GetEndpoint('WALLET_BALANCE') . '?' . http_build_query($data);
$endpoint = '/v2' . $this->main()->GetEndpoint('WALLET_BALANCE');
$options = $this->HmacCallOpts('GET', $endpoint, 'application/json;charset=UTF-8;', $data);
$options = $this->HmacCallOpts('GET', $endpoint);

return $this->doCall(true, "v2_checkWalletBalance", $url, [], $options);
}
Expand Down

0 comments on commit f256e10

Please sign in to comment.