z4rW3h6FxSwKnmTQjVyWQqkbzk5sf2IFNDxmp8Fb

Panduan Notif WA Free

Cara Pasang Notifikasi WhatsApp (WA) Gratis di Modul CPulsa

CPulsa menyediakan layanan gratis WA Notif untuk pengguna modul CPulsa dengan batasan 1 device / akun. Untuk penggunaan lebih dari 1 device, silahkan hubungi kami.

WA Notif berfungsi mengirimkan pesan notifikasi ke nomor WhatsApp member untuk setiap notif yang secara default menggunakan SMS.

Cara Pasang Notif WA Gratis:

  1. Daftar akun di link https://app.wacenter.top/home.
  2. Setelah terdaftar, masuk ke menu dashboard dan ADD device. Pastikan nomor diawali dengan 62 (bukan 0).
  3. Lakukan Scan device seperti biasa saat menggunakan WhatsApp Web.
  4. Buka file main_helper.php di application/helpers dan tambahkan script berikut di atas function send_sms($to, $message):

Update 03/03/2024

function wacpulsa($to, $message) {
    $apikey = "DfRdJi1goqTBxxxxx";
    $senders = ["6282384xxxxxxx"]; // Jika lebih dari satu sender cth: ["628238xxxxx", "6285282xxxxx"]
    $sender = $senders[array_rand($senders)];
    $tujuan = substr_replace($to, '62', 0, 1);
    $pesan = $message;

    $curl = curl_init();

    curl_setopt_array($curl, array(
        CURLOPT_URL => 'https://app.wacenter.top/send-message?api_key=' . $apikey . '&sender=' . $sender . '&number=' . $tujuan . '&message=' . rawurlencode($pesan),
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_ENCODING => '',
        CURLOPT_MAXREDIRS => 10,
        CURLOPT_TIMEOUT => 0,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
        CURLOPT_CUSTOMREQUEST => 'GET',
        CURLOPT_HTTPHEADER => array('Content-Type: application/json'),
    ));

    $response = curl_exec($curl);

    curl_close($curl);

    return $response;
}
  

Sesuaikan Key dengan key yang anda miliki, di menu wa.cpulsa.id bagian akun > setting. Sender adalah nomor yang di-scan di awal.

  1. Tambahkan script berikut di dalam function send_sms($to, $message):
    wacpulsa($to, $message);
    
  1. Testing modul dengan mencoba mengirimkan notifikasi seperti login, dll.