=== HostiGuard Connector ===
Contributors: hostiguard
Tags: domains, hosting, reseller, woocommerce, dedicated servers
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Sell HostiGuard domains and dedicated servers on your own WordPress site through your Business / Reseller API key.

== Description ==

HostiGuard — التطوير 140: إضافة ووردبريس الرسمية.

* **Domain search** shortcode `[hostiguard_domain_search]` — live availability and price from your HostiGuard account (reseller prices when you use a reseller key).
* **Pricing table** shortcode `[hostiguard_domain_pricing]` — registration / renewal / transfer prices per extension.
* **Server plans** shortcode `[hostiguard_server_plans]` — cards with the dedicated-server plans.
* **WooCommerce** (optional) — a visitor adds a domain to the cart at the live price; when the order is paid the plugin registers it at HostiGuard through your API key. Map any WooCommerce product to a HostiGuard server plan (Product data → HostiGuard tab) and it is ordered at HostiGuard when paid. Results and errors are written to the order notes; failed items can be retried from the order actions box.
* Use a reseller **test key** (`hg_test_…`) to try everything — orders are simulated and nothing is charged.

== Installation ==

1. Upload the `hostiguard-connector` folder to `/wp-content/plugins/` (or upload the zip from Plugins → Add New → Upload).
2. Activate the plugin.
3. Settings → HostiGuard: enter your HostiGuard URL and API key (Dashboard → Reseller → API, or Dashboard → Business → API). The page shows the connection status and your balance.
4. Put `[hostiguard_domain_search]` on any page.
5. (WooCommerce) create a simple product "Domain registration", choose it in Settings → HostiGuard and switch "Register" to the WooCommerce mode.

== Frequently Asked Questions ==

= Where does the money go? =
Your customers pay you (WooCommerce). The plugin then buys the domain / server from HostiGuard with your API key, paid from your HostiGuard wallet balance at your reseller price. Keep the wallet topped up.

= Are renewals handled? =
Renewal invoices are created on your HostiGuard account at expiry (Dashboard → Services). The HostiGuard API does not expose renewals yet, so the plugin does not renew automatically.

== Changelog ==

= 1.0.0 =
* First release — API v1 (account, domains pricing/check/register, server plans/order).
