bvn verify

This commit is contained in:
CHIEFSOFT\ameye
2024-09-09 14:52:39 -04:00
parent 4f1382678c
commit be61906643
2 changed files with 82 additions and 3 deletions
+32
View File
@@ -174,6 +174,38 @@ abstract class BaseController extends Controller
return $response;
}
private function sendSMS33($smsNumber,$smsMessage){
$base_url = "https://v3.api.termii.com";
$api_key = "TLYsgMTZBeasJHHimcWXG1QPHmjH7FPwnbKwiqTEwGCu6TrK0v13hCn8N6SYZp";
$curl = curl_init();
$data = array("api_key" => $api_key, "to" => $smsNumber, "from" => "digiFi",
"sms" => $smsMessage, "type" => "plain", "channel" => "generic" );
$post_data = json_encode($data);
curl_setopt_array($curl, array(
CURLOPT_URL => $base_url."/api/sms/send",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => $post_data,
CURLOPT_HTTPHEADER => array(
"Content-Type: application/json"
),
));
$response = curl_exec($curl);
curl_close($curl);
return $response;
}
public function readCustomer($uid){
$userUid = trim($uid);
$mysql ="SELECT * from customers where uid::text ='".$userUid."'";