=== RazCrypto Gateway — USDT (BEP-20) ===
Contributors: razcrypto
Tags: woocommerce, usdt bep20, crypto gateway, usdt, bep20, 
Requires at least: 5.6
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html

Fast and secure USDT (BEP-20) payments for WooCommerce — powered by RazCrypto Gateway (JS SDK + Hosted Checkout + Secure Webhook).

== Description ==

**RazCrypto Gateway** enables your WooCommerce store to accept **USDT (BEP-20)** payments on Binance Smart Chain (BSC).  
No private keys or blockchain node setup required — only your **Public Key ID** from the RazCrypto Dashboard.

=== Key Features ===
* Lightweight JS SDK — no secrets exposed on client side  
* Hosted Checkout (auto-redirect) or Custom Payment Page (QR, wallet address, and amount copy)  
* Adaptive appearance — Branded (default), Theme-adaptive, or Custom colors (via color pickers)  
* Secure Webhook with optional HMAC signature verification  
* Automatically marks WooCommerce orders “processing” or “completed” on blockchain confirmation  
* Clean, optional debug logging (plugin folder or uploads fallback)  
* Mobile-first, accessible UI designed for speed and clarity  

=== How It Works ===
1. Customer places an order — plugin creates a RazCrypto payment via SDK.  
2. If **Hosted Auto-Redirect** is enabled (default), customer goes to the hosted payment page.  
   Otherwise, they’re shown the **Custom Payment Page** (QR + address + amount).  
3. Once the on-chain transaction confirms, the **Webhook** hits your site (HMAC optional).  
4. The order is automatically updated to “Paid” (processing/completed) and user is redirected to the thank-you or orders page.

**Docs:** [https://razcryptogateway.com/docs/wordpress-plugin](https://razcryptogateway.com/docs/wordpress-plugin)  
**Website:** [https://razcryptogateway.com](https://razcryptogateway.com)

== Screenshots ==
1. Admin overview page and quick links  
2. WooCommerce payment settings (Public Key, Auto-redirect, Webhook Secret, Logging)  
3. Custom Payment Page (QR + address + amount + timer)  
4. Checkout redirect overlay (“Processing Payment...”)  

== Installation ==
1. Upload the ZIP or install via “Add New Plugin”.  
2. Go to **WooCommerce → Settings → Payments → RazCrypto (USDT BEP-20)**.  
3. Enter your **Public Key ID** (e.g., `rz_pub_xxx`).  
4. (Optional) Add a **Webhook Secret** to verify callbacks (HMAC).  
5. (Optional) Adjust appearance (Branded / Theme-adaptive / Custom colors).

== Frequently Asked Questions ==

= Which coins are supported? =
Currently single-asset: **USDT (BEP-20)** on Binance Smart Chain.

= Do I need any secret key on my site? =
No. Only the public key is required by the JS SDK.  
You can optionally add a Webhook Secret to verify HMAC signatures for higher security.

= What is the webhook URL? =
The plugin automatically provides a webhook endpoint such as:  
`https://your-site.com/?razcrypto_webhook=1&order_id=1234`  
RazCrypto sends JSON payloads with transaction details and signature (if enabled).

= Where are logs stored? =
If enabled, logs are written to:  
- `/wp-content/uploads/razcrypto.log` (fallback)  
- or `/wp-content/plugins/razcrypto-gateway/logs/razcrypto.log` (if writable)

= Can I avoid the hosted payment page? =
Yes. Disable “Hosted Auto-Redirect” — the Custom Payment Page will be shown instead.

= Does this plugin store wallet keys or funds? =
No. It never stores private keys or handles funds directly.  
All payments go through the RazCrypto Gateway using your verified public key.

= GDPR and Privacy? =
The plugin sends no personal data to RazCrypto beyond optional metadata (name, email, or phone) you choose to include for order matching.  
See your site’s Privacy Policy for further details.

== Changelog ==

= 1.0.0 =
* Initial release — USDT (BEP-20) support  
* Hosted & Custom Payment Pages  
* HMAC-verified webhook  
* Adaptive appearance system  
* Logging & admin overview page

== Upgrade Notice ==

= 1.0.0 =
First public release — stable and production-ready.

== License ==
This plugin is open-source software licensed under the [GPLv2 or later](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).
