=== Moonvex Crypto Payments for WooCommerce ===
Contributors: moonvexpay
Tags: crypto payments, usdt, bitcoin, woocommerce, payment gateway
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept USDT, USDC, BTC, ETH, TON, SOL, TRX and BNB in WooCommerce. The customer picks the coin and network; orders are marked paid automatically.

== Description ==

Moonvex Crypto Payments adds a crypto payment method to your WooCommerce store.

At checkout the customer chooses "Crypto" and is taken to the Moonvex payment page, where they pick the coin and network they hold, see the exact amount, address and QR code, and pay from any wallet or exchange. When the network confirms the transfer, Moonvex sends a signed webhook and the order is marked paid. The customer returns to your "Order received" page with one click.

**Coins and networks**

* USDT on TRON (TRC-20), BNB Smart Chain (BEP-20), Ethereum (ERC-20), Solana and TON
* USDC on Ethereum, BNB Smart Chain and Solana
* BTC, ETH, BNB, TRX, SOL, TON

**Features**

* The customer chooses the coin and network on the payment page — no extra fields in your checkout.
* Price in USD, EUR, UAH or RUB (or in a coin); the amount in the chosen coin is calculated and locked when the customer picks it.
* Orders are completed automatically by HMAC-signed webhooks; each event is applied once.
* Underpayments put the order on hold with a note, so you can decide before shipping.
* Works with the classic checkout and the Cart/Checkout blocks; compatible with High-Performance Order Storage.
* A payment counts only after two independent network nodes confirm it.
* Sign up with an email, no monthly fee.

**Requirements**

* A Moonvex account: [moonvex.org](https://moonvex.org/en)
* Store currency USD, EUR, UAH or RUB (or a coin such as USDT). For other currencies the method stays hidden.

== External services ==

This plugin connects to the Moonvex payment service, operated by Moonvex (https://moonvex.org), to accept crypto payments. It is required for the payment method to work.

* When a customer places an order with this method, the plugin sends to `https://api.moonvex.org/v1/payments`: the order reference, the order total and currency, the order number in the description, the customer's billing email, the URL of your "Order received" page and the store's host name. This creates the payment page the customer is redirected to.
* Moonvex sends payment status notifications (webhooks) to `/wp-json/moonvex/v1/webhook` on your site.
* The customer completes the payment on `https://pay.moonvex.org`.

Moonvex service rules: https://moonvex.org/en/rules
Security and data protection: https://moonvex.org/en/security

== Installation ==

1. Install and activate the plugin. WooCommerce must be active.
2. In the Moonvex dashboard open Integration → API keys and create a secret key.
3. In Integration → Webhooks add the URL shown in the plugin settings (`https://your-shop/wp-json/moonvex/v1/webhook`) and copy the webhook secret.
4. In WooCommerce → Settings → Payments → Moonvex paste the secret key and the webhook secret, then enable the method.
5. Place a test order and pay a small amount (for example 1 USDT on TRON) to check the whole flow.

== Frequently Asked Questions ==

= Which store currencies are supported? =

USD, EUR, UAH and RUB, or a coin (USDT, USDC, BTC, ETH, TON, SOL, TRX, BNB). Fiat prices are converted at a rate locked when the customer picks the coin. For other currencies the payment method is hidden.

= What happens if the customer pays less? =

The order is put on hold with a note showing the amount received. You decide whether to ship or ask for the rest.

= Can the customer change the coin after choosing one? =

Yes, until money is sent to the address. A payment that has already received funds cannot be switched.

= How do refunds work? =

Send the refund from the Moonvex dashboard as a payout to the customer's address. Automatic refunds from WooCommerce are not supported.

= Where do I get help? =

Write to Moonvex support in Telegram: [@moonvex_support](https://t.me/moonvex_support). Payment and payout notifications are available in the bot [@moonvex_bot](https://t.me/moonvex_bot).

= Is there a test mode? =

There is no separate test network. Use the "Send test" button in the Moonvex dashboard to check the webhook, then pay a small real amount.

== Changelog ==

= 1.1.2 =
* readme: Contributors now lists the plugin owner account (moonvexpay).

= 1.1.1 =
* Neutral default description at checkout ("Pay with cryptocurrency"): it no longer lists coins, because the store chooses which coins and networks it accepts in the Moonvex dashboard (Settings → Coins and networks). Stores that already saved their own description keep it.

= 1.1.0 =
* Store currencies EUR, UAH and RUB, in addition to USD and coins (converted at a locked cross rate).
* Support contact: Telegram @moonvex_support.

= 1.0.0 =
* First release: customer chooses the coin and network on the Moonvex page, signed webhooks, blocks checkout, HPOS.
