=== USNpay for WooCommerce ===
Contributors: dengdengkan
Tags: woocommerce, cryptocurrency, payment gateway, usdt, crypto
Requires at least: 5.6
Tested up to: 7.0
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 cryptocurrency payments (USDT / USDC / BTC / ETH / TRX) in WooCommerce via USNpay. Non-custodial, funds go straight to your own wallet.

== Description ==

This plugin connects your WooCommerce store to **USNpay**, a non-custodial crypto payment service, so buyers can pay with cryptocurrency (USDT / USDC / BTC / ETH / TRX and more). Funds go **directly to your own on-chain wallet** — the platform never holds your money.

**USNpay** is the developer's own brand and service (operated at usnpay.com). This plugin is an integration that connects WooCommerce stores to the USNpay service.

This plugin is not affiliated with, endorsed by, or sponsored by WooCommerce, Automattic, or the WordPress Foundation. "WooCommerce" is used only to describe compatibility.

= How it works =

1. The buyer chooses "USNpay Crypto Payment" at WooCommerce checkout.
2. The plugin calls the USNpay API (signed with HMAC) to create a payment order and redirects the buyer to the USNpay cashier.
3. The buyer pays with cryptocurrency; funds go **directly to your bound on-chain wallet**.
4. After on-chain confirmation, USNpay sends a signed webhook to your site, and the plugin marks the order as paid, triggering your normal fulfillment flow.

= External service =

This plugin relies on the USNpay service (a third-party service operated by the plugin author) to process crypto payments. When a customer checks out, order data (amount, currency, order number, and your store's callback URL) is sent to the USNpay API to create a payment order.

- Service: USNpay
- API endpoint: your configured USNpay site (e.g. https://usnpay.com)
- Terms of Service: https://usnpay.com/docs
- Privacy Policy: https://usnpay.com/docs

== Installation ==

1. Upload the `usnpay-for-woocommerce` folder to `/wp-content/plugins/`, or install the zip via Plugins → Add New → Upload Plugin.
2. Activate the plugin through the Plugins menu.
3. WooCommerce must be installed and active.
4. Go to WooCommerce → Settings → Payments → USNpay Crypto Payment and fill in your USNpay site URL, Merchant ID, API Key, API Secret, Webhook Secret, and default coin.

== Frequently Asked Questions ==

= Do I need a USNpay account? =

Yes. Sign up at usnpay.com, bind a receiving wallet, and generate your API keys in the member center.

= Where do the funds go? =

Directly to your own on-chain wallet. USNpay is non-custodial and does not hold your funds.

= Is HTTPS required? =

Yes, your site must be served over HTTPS for secure crypto payments.

== Changelog ==

= 1.0.0 =
* Initial release.
