Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $bankUser = $client
- ->post(
- "https://bankid.privatbank.ua/ResourceService/checked/data",
- [
- "Content-Type" => "application/json",
- "Accept" => "application/json",
- "Authorization" => "Bearer {$accessToken['access_token']}, Id {$this->clientId}",
- ],
- json_encode([
- "type" => "physical",
- "fields" => ["firstName","middleName","lastName","phone","inn","clId","clIdText","birthDay","email","sex","resident","dateModification"],
- "addresses" => [[
- "type" => "factual",
- "fields" => ["country","state","area","city","street","houseNo","flatNo","dateModification"]
- ],[
- "type" => "birth",
- "fields" => ["country","state","area","city","street","houseNo","flatNo","dateModification"]
- ]],
- "documents" => [[
- "type" => "passport",
- "fields" => ["series","number","issue","dateIssue","dateExpiration","issueCountryIso2","dateModification"]
- ]]
- ])
- )
Advertisement
Add Comment
Please, Sign In to add comment