get($id); } public function withdraw($id, $params) { PromisePay::RestClient('post', 'wallet_accounts/' . $id . '/withdraw', $params); return PromisePay::getDecodedResponse('disbursements'); } public function deposit($id, $params) { PromisePay::RestClient('post', 'wallet_accounts/' . $id . '/deposit', $params); return PromisePay::getDecodedResponse('disbursements'); } public function getUser($id) { PromisePay::RestClient('get', 'wallet_accounts/' . $id . '/users'); return PromisePay::getDecodedResponse('users'); } }