# Pasang “Anti Fake WA” di Checkout Scalev

### Apa yang dilakukan fitur ini?

Script akan **mengecek valid/aktif tidaknya nomor WhatsApp** saat user mengisi form checkout.

* **Nomor valid** → tombol submit **aktif** dan bisa diklik.
* **Nomor tidak valid** → tombol submit **terkunci** dan muncul notifikasi error (teks bisa dikustom).

***

### Langkah Implementasi (5 menit kelar)

<figure><img src="/files/wt8FH1HQjWzT3UMwvQ6c" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/giDOYTxhv1Fis93bHzhr" alt=""><figcaption></figcaption></figure>

* **Login ke Scalev**
  * Masuk ke akun **Scalev** → buka menu **Landing Page**
  * Pilih halaman yang mau dipasang → klik **Edit**

<figure><img src="/files/55ETbPHaJhnNv7DWnTSw" alt=""><figcaption></figcaption></figure>

* **Tambah Widget HTML**
  * Di editor, klik **Tambah Widget** → pilih **HTML** (bukan Text/Markdown)
  * Pastikan widget HTML **mengizinkan `<script>`** (umumnya iya)
* **Copy Script Resmi**
  * Buka: [**https://pastebin.com/U0Eyw3M8**](https://pastebin.com/U0Eyw3M8)
  * Klik **Raw** (biar tidak kepotong format), lalu **copy semua isi script**
* **Paste di Widget HTML**
  * Kembali ke editor Scalev → di widget **HTML** tadi → **paste** script yang sudah dicopy

<figure><img src="/files/0DDC0oF9Z2Koh6MGVXqq" alt=""><figcaption></figcaption></figure>

* **Isi Konfigurasi (WAJIB)**

  * Buka [**https://app.balesotomatis.id/rest-api**](https://app.balesotomatis.id/rest-api) → salin **Number ID / Number Key** kamu, pastikan **numberId** yang dipilih **statusnya CONNECTED/TERHUBUNG**

  * Di script yang barusan ditempel, cari bagian **CONFIG** lalu isi nilai berikut:
    * `numberId`

  * (Opsional) Ubah teks error, misal: `"Nomor WA tidak valid"` agar sesuai brand-mu

  > Contoh blok konfigurasi yang biasa ada di awal script:

  ```html
  <script>
    window.WA_VALIDATION_CFG = {
      numberId: 'BO-xxxxx',
      invalidButtonText: 'No WA Invalid - Hubungi CS'
    };
  </script>
  <script src="https://cdn.balesotomatis.id/scripts/scalev-antispam.js"></script>
  ```
* **Save & Publish**
  * Klik **Save** → **Publish** halaman
  * Buka halaman checkout → **uji coba**:
    * Masukkan nomor WA **valid** → tombol submit **aktif**
    * Masukkan nomor WA **tidak valid** → submit **terkunci** + muncul notifikasi error

<figure><img src="/files/1t6F7x0RKyM1MVkYrWon" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Wm9pOiGrPxZoX7ctS1X4" alt=""><figcaption></figcaption></figure>

* **Butuh Bantuan?**
  * Langsung chat CS: [**https://link.balesotomatis.id/support-bo-official**](https://link.balesotomatis.id/support-bo-official)

***

### Tips Format Nomor (penting biar akurat)

* Gunakan format **kode negara +62** (tanpa `+` juga umumnya didukung, tergantung field), **tanpa spasi/tanda baca**
  * Benar: `6281234567890`
  * Hindari: `0812 3456 7890`, `+62-812-...`, `(+62) 812 ...`
* Kalau user tetap input `0` di depan, script biasanya sudah menormalkan, tapi **format +62** paling aman.

***

### Uji Coba Cepat (Checklist)

* [ ] Nomor valid (contoh: nomor WhatsApp aktif sendiri) → tombol submit **aktif**
* [ ] Nomor fiktif (acak) → tombol submit **non-aktif** + muncul pesan **invalid**
* [ ] Pesan error tampil **tepat di area input/tombol** (sesuai script)
* [ ] Coba di **mobile** & **desktop**
* [ ] Reload halaman: perilaku tetap konsisten

### Pertanyaan Umum

**Q: Apakah ini menghambat submit manual pakai bot/otomasi?**\
A: Script menangkap event klik & submit (termasuk beberapa trik otomasi), lalu **membatalkan submit** jika nomor **invalid**.

**Q: Perlu akses server/endpoint khusus di Scalev?**\
A: **Tidak perlu.** Cukup tempel script di widget HTML, semua validasi berjalan di sisi front-end dengan panggilan API validasi.

**Q: Aman nggak?**\
A: Script hanya memvalidasi nomor WA. Pastikan tetap patuhi kebijakan privasi dari Scalev.id


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.balesotomatis.id/integrations/scalev-integration/pasang-anti-fake-wa-di-checkout-scalev.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
