This commit is contained in:
CHIEFSOFT\ameye
2024-05-06 10:06:19 -04:00
parent 286dc15f61
commit fa1184043e
+14 -1
View File
@@ -23,7 +23,20 @@ class DigiFiBVN extends BaseController
public function completeBVNVerify(){
$data = $this->request->getPost();
if ($data['bvn'] != '' && $data['verification_id'] !='' && $data['otp'] !='') {
if ($data['bvn'] != ''
&& $data['verification_id'] !=''
&& $data['otp'] !=''
) {
if ( $data['otp'] !='12345'){
$response = [
'message' => 'Invalid account or OTP',
'call_return' => '0',
'customer'=> [],
"token" =>''
];
return $this->respond($response, 200);
}
$customer = [];
// we need OTP verified here to continue