=== NormiePay Crypto Checkout ===
Contributors: timhutter
Tags: crypto, payments, usdc, stablecoin, non-custodial
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Non-custodial crypto payments for WooCommerce — accept USDC on Base & Polygon; funds settle on-chain straight to your wallet.

== Description ==

NormiePay is a non-custodial crypto payment gateway. This plugin lets your WooCommerce store accept USDC on Base and Polygon. Each order redirects to a hosted NormiePay checkout; when the payment confirms on-chain, a signed webhook marks the order paid automatically.

* Non-custodial — funds settle on-chain directly to your wallet via smart contract
* USDC on Base & Polygon (the customer picks at checkout)
* One-click webhook setup — just paste your API key and save
* Signed (HMAC-SHA256) webhooks verify every payment
* Automatic on-chain refunds for over/underpayment

== External services ==

This plugin connects to the NormiePay API (https://normiepay.xyz) to process crypto payments. NormiePay is required for the plugin to function; you provide your own NormiePay API key in the settings.

What is sent, and when:

* When a customer places an order and chooses this payment method, the order amount, the customer's email, and the order id/key are sent to https://normiepay.xyz/api/v1/checkout/sessions to create a hosted checkout session.
* When you save the plugin settings, your store's webhook URL is sent to https://normiepay.xyz/api/v1/webhooks to register it (one time).
* NormiePay sends a signed webhook back to your store (verified with HMAC-SHA256) to mark the order paid.
* The payment method icon is loaded from https://normiepay.xyz/icon.svg.

This service is provided by NormiePay. Terms & disclaimer: https://normiepay.xyz/disclaimer — Documentation: https://normiepay.xyz/docs

== Installation ==

1. Upload the plugin zip via Plugins → Add New → Upload Plugin, then Activate.
2. Go to WooCommerce → Settings → Payments → NormiePay.
3. Paste your NormiePay API key (Dashboard → API Keys) and click Save changes. Your webhook is registered automatically.
4. Enable the gateway. Done.

Requires a NormiePay account (https://normiepay.xyz) with a payout wallet and company name set.

== Frequently Asked Questions ==

= What currencies are supported? =
Order totals are charged as USDC (USD-pegged). Best suited to USD-priced stores in this version.

= Is it non-custodial? =
Yes. Payments settle on-chain through a smart contract straight to your wallet. NormiePay never holds, freezes, or can redirect your funds.

== Changelog ==

= 1.1.2 =
* Corrected the Contributors field in readme to the plugin owner's WordPress.org username.
* Bundled the payment icon locally instead of loading it from a remote server.
* Hardened webhook handling by sanitizing all incoming event data.

= 1.1.1 =
* Fixed a fatal error on activation with block checkout (redeclared inherited $settings property). Verified on PHP 7.4–8.x.

= 1.1.0 =
* Added WooCommerce Checkout block support — the gateway now works in both classic and block-based checkout.

= 1.0.0 =
* Initial release: hosted checkout, one-click webhook registration, signed webhook order completion.
