payment status
This commit is contained in:
@@ -214,4 +214,22 @@ class Users extends BaseController
|
||||
// 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