*** Authorization Request in PHP ***| $ch = curl_init('https://sandbox.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials'); curl_setopt($ch, CURLOPT_HTTPHEADER, [   'Authorization: Basic ' . base64_encode('ZdlL8HhGsn45KsykgUW9TtfxyX8Li6X7:wgxiChauU21F7SF8') ]); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); echo json_decode($response); Items to SESSION: + Trainer + Facility + Sport + No. of Days + Trainer Level + Facility Level + Payment Details + Customer Email + Trainer Email + Admin Email INSERT INTO DB for RECORDS contact, trainers, lessons SELECT trainers.id AS id, trainers.firstname AS firstname, trainers.lastname AS lastname, trainers.facility1 AS facility1, trainers.facility2 AS facility2, trainers.sport AS sport_id, trainers.gender AS gender, trainers.location AS location, trainers.trainer_rating AS trainer_ratings, contacts.prof_picture AS profile_picture, contacts.email AS email, contacts.phone_number1 AS phone_number1, contacts.phone_number2 AS phone_number2, contacts.ward AS ward, trainers.training_level AS training_level lessons.name AS sport, lessons.base_price AS base_price FROM contacts JOIN trainers ON trainers.id=contacts.user_id JOIN lessons ON trainers.sport=lessons.id WHERE location=:location ATBBYNMwUsqUYGwXKZ5PMhjfQt9731E72920