//Send OTP SMS via MSG91 for phone number only function send_otp_sms_msg91($phone, $otp) { $authKey = "216207Aynafr0gZ5affdd87"; // Your MSG91 Auth Key $templateId = "6811bd67d6fc05403f04ce12"; // Your approved DLT template $sender = "PNPOTP"; // Your DLT sender ID $postData = [ "authkey" => $authKey, "template_id" => $templateId, "mobile" => $phone, "otp" => $otp, "sender" => $sender ]; $url = "https://api.msg91.com/api/v5/otp"; $response = wp_remote_post($url, [ 'method' => 'POST', 'headers' => ['Content-Type' => 'application/json'], 'body' => json_encode($postData), ]); error_log("MSG91 Response: " . print_r($response, true)); return !is_wp_error($response); } //Hook into FluentForm submission and send OTP SMS (For Phone Number Only) add_filter('fluentform/submission_confirmation', 'custom_msg91_otp_hook_for_single_phone', 10, 5); function custom_msg91_otp_hook_for_single_phone($returnData, $form, $confirmation, $insertId, $formData) { // Ensure it's the right form by checking form ID (adjust if needed) if ($form->id !== 12) { // Assume form ID 75 is for the phone number form return $returnData; // If it's not form ID 75, return the default confirmation data } // Start a session if it's not already started if (!session_id()) { session_start(); } //Extract phone number from form data $phone = isset($formData['phone_number']) ? sanitize_text_field($formData['phone_number']) : ''; if (!$phone) { return $returnData; // If no phone number provided, don't send SMS } // Generate OTP $otp = rand(100000, 999999); // Store OTP in session (optional, for later verification) $_SESSION['otp'] = $otp; $_SESSION['phone'] = $phone; // Send OTP via MSG91 API send_otp_sms_msg91($phone, $otp); //Return default confirmation data (no custom message shown) return $returnData; }

Royal Blue Kathak Ghungroo (3 )Three Line Big Dancing Bells

Original price was: ₹ 1,099.00.Current price is: ₹ 899.00.

SKU: PNPGB-3622 Categories: , Tag:
royal blue Kathak Ghungroo(2)Two Line Big Dancing Bells
Royal Blue Kathak Ghungroo (3 )Three Line Big Dancing Bells