=== WaSend WhatsApp Notification ===
Contributors: jowtech
Tags: whatsapp, woocommerce, notification, wasend
Requires at least: 5.8
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPL-2.0-or-later

Notifikasi WhatsApp otomatis untuk WordPress & WooCommerce melalui WaSend (https://wasend.web.id).

== Fitur ==

* Notifikasi pelanggan WooCommerce untuk setiap status pesanan: pending, on-hold, processing, completed, cancelled, refunded, failed.
* Notifikasi saat admin menambahkan catatan untuk pelanggan di pesanan.
* Notifikasi ke nomor admin: pesanan baru, pesanan dibayar, pengguna baru.
* Notifikasi pendaftaran pengguna WordPress.
* Editor template dengan variabel seperti {billing_first_name}, {order_items}, {order_total}, {bacs_accounts}, dan lainnya.
* Pengiriman di background lewat Action Scheduler / WP-Cron, sehingga checkout tidak melambat.
* Catatan di setiap pesanan (terkirim / gagal), log 50 pengiriman terakhir, dan tes kirim.
* Kompatibel dengan WooCommerce HPOS dan checkout blok.

== Instalasi ==

1. Upload folder `wasend-wp` ke `wp-content/plugins/`, atau upload file zip lewat Plugins → Add New → Upload.
2. Aktifkan plugin, lalu buka menu **WaSend**.
3. Isi **API Key** (buat di dashboard WaSend → API Keys) dan **Nama Session** (session yang berstatus WORKING).
4. Kirim pesan tes, lalu atur template di tab **Template Pesan**.

== Untuk developer ==

Kirim pesan dari tema atau plugin lain:

    wasend_send('081234567890', 'Halo dari WordPress!');
    // atau
    do_action('wasend_send', '081234567890', 'Halo!');

Nilai yang dikembalikan `wasend_send()` berbentuk `['ok' => bool, 'data' => mixed, 'error' => string|null]`.

== Changelog ==

= 1.0.5 =
* Rilis pemeliharaan bersamaan dengan uji update satu klik di WHMCS.

= 1.0.4 =
* Rilis pemeliharaan untuk menguji update otomatis.

= 1.0.3 =
* Waktu rilis di jendela View details memakai WIB.
* Rilis uji pemberitahuan update otomatis.

= 1.0.2 =
* Pemberitahuan versi baru dan tombol "Update now" langsung dari dashboard WordPress.
* Tautan View details, Docs (API), dan Support di daftar plugin.

= 1.0.1 =
* Koneksi ke WaSend dipaksa memakai IPv4 dan dicoba ulang otomatis bila DNS gagal atau koneksi ditolak.

= 1.0.0 =
* Rilis pertama.
