=== Paygate — Crypto Payments ===
Contributors: paygate
Tags: woocommerce, cryptocurrency, bitcoin, usdt, payments, crypto, ton, tron, ethereum
Requires at least: 5.6
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept non-custodial cryptocurrency payments (USDT, BTC, ETH, TON, TRX and more) in WooCommerce via Paygate. Low fees, no chargebacks.

== Description ==

Paygate lets your WooCommerce store accept cryptocurrency payments through a secure hosted checkout. The customer picks their coin and network on Paygate's page and pays; your order is completed automatically via a signed webhook.

* Non-custodial crypto acceptance — funds settle to your Paygate account.
* Supports popular assets: USDT (TRC-20/ERC-20/TON), BTC, ETH, TON, TRX and more.
* Low processing fees and no chargebacks — crypto payments are final.
* Hosted checkout: no card data or private keys touch your server.
* Webhook payments confirmed with HMAC-SHA256 signatures and replay protection.
* HPOS (High-Performance Order Storage) compatible.

== Installation ==

1. Upload the `paygate-for-woocommerce` folder to `/wp-content/plugins/`, or install the ZIP via Plugins → Add New → Upload.
2. Activate the plugin.
3. Go to WooCommerce → Settings → Payments → "Paygate — Crypto Payments".
4. Enable the method and paste your **API Base URL** (default `https://paygate.love`), **API Key**, and **API Secret** from your Paygate cabinet (Settings → API).
5. Save. In your Paygate cabinet, no webhook URL setup is required — the plugin sends its callback URL (`{your-site}/wc-api/wc_gateway_paygate`) with every checkout.

== Frequently Asked Questions ==

= Which cryptocurrencies are supported? =
USDT (TRC-20/ERC-20/TON), BTC, ETH, TON, TRX and other assets offered on the Paygate checkout.

= Is it custodial? =
Payments settle to your Paygate account; no card data or private keys are stored on your WooCommerce site.

= How is a payment confirmed? =
Paygate sends a signed webhook (HMAC-SHA256 over the raw body using your API Secret). The plugin verifies the signature, applies idempotency by webhook id, and completes the order only on `paid`, `overpaid`, or `settled`.

= Are there chargebacks? =
No. Cryptocurrency payments are final once confirmed.

== Changelog ==

= 1.0.0 =
* Initial release: hosted-checkout crypto payments with signed webhook confirmation.
