=== OTP.ps for WooCommerce ===
Contributors: otpps
Tags: otp, sms, cash on delivery, phone verification, palestine
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Confirm customers' Palestinian mobile numbers by SMS before shipping cash-on-delivery orders.

== Description ==

Fake and mistyped numbers are the main cost of cash on delivery. OTP.ps for WooCommerce confirms that the customer really owns the mobile number (Jawwal 059, Ooredoo 056) before you ship:

* **After the order (any checkout, including the block checkout):** the order waits on hold, the customer confirms through a link (texted to them, or shown on the thank-you page), and the order moves to processing by itself.
* **At checkout (classic checkout):** a code box under the phone field; the order can't be placed until the number is confirmed.

Messages are in Arabic or English and start with your store's name. You pay OTP.ps per message from a prepaid balance; test keys are free.

== Installation ==

1. Upload the plugin (Plugins → Add New → Upload) and activate it.
2. In wp-config.php add your key: `define('OTP_PS_API_KEY', 'otp_test_…');` (or enter it in WooCommerce → Settings → OTP.ps).
3. In WooCommerce → Settings → OTP.ps, choose how customers confirm, and press **Connect** under "Instant updates".
4. Place a test order with the number 0599000001. With a test key nothing is sent; on the confirmation page the code is 1234.
5. Switch to a live key when ready.

== Frequently Asked Questions ==

= Which numbers work? =
Jawwal (059) and Ooredoo (056) mobiles, written any way (+970, +972, 0599…, Arabic digits).

= What if the customer never confirms? =
The order stays on hold with a note. Call the customer or cancel it.

== Changelog ==

= 1.0.0 =
* First version.
