Skip to content

Commit f734fae

Browse files
committed
Update balances
1 parent 14f03ad commit f734fae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Tanda.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ private function get_access_token()
4545

4646
public function balances()
4747
{
48-
$u = "https://io-proxy-443.tanda.co.ke/sandbox/wallets/v1/orgs/".$this->org_id."/balances?accountTypes=01,02";
49-
$url = $this->env == 'sandbox' ? $u : str_replace('/sandbox', '', $u);
48+
$uri = "https://io-proxy-443.tanda.co.ke/sandbox/wallets/v1/orgs/".$this->org_id."/balances?accountTypes=01,02";
49+
$url = $this->env == 'sandbox' ? $uri : str_replace('/sandbox', '', $uri);
5050
return HTTP::withToken($this->get_access_token())
5151
->accept('application/json')
5252
->get($url)[0]['balances'];

src/TandaServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function boot()
2929
]);
3030
}
3131
}
32-
32+
3333
/**
3434
* Register any application services.
3535
*

0 commit comments

Comments
 (0)