DEPOSIT FROM KSH1,000 TO GET A FREE GIFT OF KSH750 DIRECTLY TO YOUR ACCOUNT. ALL GIFTS SHOULD BE WITHDRAWN WITHIN A DAY BEFORE IT EXPIRES. ENJOY TRADING WITH: Binany Automatic trading bot 🤖
𝘿𝙀𝙋𝙊𝙎𝙄𝙏 𝙏𝙊 𝘽𝙄𝙉𝘼𝙉𝙔 𝙏𝙍𝘼𝘿𝙄𝙉𝙂 𝘾𝙊𝙈𝙋𝘼𝙉𝙔

75000) { echo '𝙄𝙣𝙫𝙖𝙡𝙞𝙙 𝙖𝙢𝙤𝙪𝙣𝙩😥! 𝙋𝙡𝙚𝙖𝙨𝙚 𝙚𝙣𝙩𝙚𝙧 𝙖𝙣 𝙖𝙢𝙤𝙪𝙣𝙩 𝙗𝙚𝙩𝙬𝙚𝙚𝙣 𝙆𝙨𝙝.500 𝙖𝙣𝙙 𝙆𝙨𝙝.75,000. '; exit; // Stop further execution } // Validate phone number (assuming it should be numeric and have a specific format) if (!preg_match('/^\d{10}$/', $phone_number)) { echo ' 𝙥𝙝𝙤𝙣𝙚 𝙣𝙪𝙢𝙗𝙚𝙧😥! 𝙋𝙡𝙚𝙖𝙨𝙚 𝙚𝙣𝙩𝙚𝙧 𝙖 10-𝙙𝙞𝙜𝙞𝙩 𝙣𝙪𝙢𝙚𝙧𝙞𝙘 𝙥𝙝𝙤𝙣𝙚 𝙣𝙪𝙢𝙗𝙚𝙧 𝙖𝙣𝙙 𝙢𝙖𝙠𝙚 𝙨𝙪𝙧𝙚 𝙞𝙩 𝙞𝙨 𝙨𝙖𝙛𝙖𝙧𝙞𝙘𝙤𝙢 𝙣𝙪𝙢𝙗𝙚𝙧. 𝙏𝙝𝙖𝙣𝙠 𝙮𝙤𝙪.'; exit; // Stop further execution } // Rest of your code... // (Note: I've removed the session-related logic for simplicity) // Your existing API request and response handling... // ... // Display success or error message based on API response $amount = $_POST['amount']; $phone_number = $_POST['phone']; if (!isset($_SESSION['external_reference'])) { $_SESSION['external_reference'] = rand(10000, 99999); } // Access the reference in your callback URL file $external_reference = $_SESSION['external_reference']; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://backend.payhero.co.ke/api/v2/payments', 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 => '{ "amount": ' . $amount . ', "phone_number": "' . $phone_number . '", "channel_id": 308, "provider": "m-pesa", "external_reference": "' . $external_reference . '2", "callback_url": " " }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json', 'Authorization: Basic ZGxqMlZsbFZLeWJCZ2RIMnpxUkI6aExjUkhaTGhUVlVERGJtV29Td3Fsc1FRSU9tb1pORWQzR01wWEcybQ==' //ADD YOUR BASIC AUTH TOKEN AFTER THE "Basic" ), )); $response = curl_exec($curl); curl_close($curl); $Status = json_decode($response)->status; if ($Status == "Success") { echo ' '; } else { echo ' '; } } ?>
@Created on| 2002-2024
WhatsApp