payment status
This commit is contained in:
@@ -62,6 +62,7 @@ $routes->get('/digiusers/v1/dash/references', 'Users::userDashReferences')
|
|||||||
$routes->get('/digiusers/v1/profile', 'Users::userProfile');
|
$routes->get('/digiusers/v1/profile', 'Users::userProfile');
|
||||||
|
|
||||||
$routes->post('/digiusers/v1/addcard', 'Users::userAddCard');
|
$routes->post('/digiusers/v1/addcard', 'Users::userAddCard');
|
||||||
|
$routes->get('/digiusers/v1/payment/status', 'Users::userPaymentStatus');
|
||||||
|
|
||||||
$routes->get('/digiusers/v1/employers', 'Employers::approvedEmployersList');
|
$routes->get('/digiusers/v1/employers', 'Employers::approvedEmployersList');
|
||||||
|
|
||||||
|
|||||||
@@ -214,4 +214,22 @@ class Users extends BaseController
|
|||||||
// return $this->respond([], 400);
|
// return $this->respond([], 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function userPaymentStatus(){
|
||||||
|
$in = $this->request->getGet();
|
||||||
|
$data = [];
|
||||||
|
if ($in['uid'] !=''){
|
||||||
|
$query = $this->db->query("SELECT * FROM charges WHERE reference = '".$in['reference;']."' ");
|
||||||
|
$row = $query->getRowArray();
|
||||||
|
$data = [
|
||||||
|
'call_return' => '100',
|
||||||
|
'payment' => $row
|
||||||
|
];
|
||||||
|
return $this->respond($data, 200);
|
||||||
|
}else{
|
||||||
|
return $this->respond(['error'=>'empty uid','inn'=>$in,], 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
// return $this->respond([], 400);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user