Verify BVN Micro call
This commit is contained in:
@@ -104,6 +104,10 @@ class DigiFiBVN extends BaseController
|
||||
$data = $this->request->getPost();
|
||||
|
||||
if ($data['bvn'] != '') {
|
||||
|
||||
$bvnData = $this->APIcall("POST", "http://10.10.10.48:6332/api/verify/bvn", json_encode($data));
|
||||
|
||||
|
||||
$udata = [
|
||||
'bvn' => $data['bvn']
|
||||
];
|
||||
@@ -113,7 +117,8 @@ class DigiFiBVN extends BaseController
|
||||
$response = [
|
||||
'message' => 'Failure',
|
||||
'call_return' => '100',
|
||||
'token' => ''
|
||||
'token' => '',
|
||||
'test_bvn' => $bvnData
|
||||
];
|
||||
return $this->fail($response, 500);
|
||||
}
|
||||
@@ -122,6 +127,8 @@ class DigiFiBVN extends BaseController
|
||||
'message' => 'Verification text sent to user',
|
||||
'call_return' => '100',
|
||||
'verification_id' => $addedData["uid"],
|
||||
'status' => $bvnData["res"]["status"],
|
||||
'test_bvn' => $bvnData["res"]["data"]
|
||||
];
|
||||
|
||||
return $this->respond($response, 200);
|
||||
|
||||
Reference in New Issue
Block a user