BVN Otp
This commit is contained in:
@@ -23,7 +23,20 @@ class DigiFiBVN extends BaseController
|
|||||||
public function completeBVNVerify(){
|
public function completeBVNVerify(){
|
||||||
|
|
||||||
$data = $this->request->getPost();
|
$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 = [];
|
$customer = [];
|
||||||
// we need OTP verified here to continue
|
// we need OTP verified here to continue
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user