Verify BVN Micro call

This commit is contained in:
CHIEFSOFT\ameye
2024-05-06 14:23:11 -04:00
parent fa1184043e
commit 4fcbf3e3ff
2 changed files with 62 additions and 9 deletions
+8 -1
View File
@@ -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);