=== IzichangePay for WooCommerce ===
Contributors: adignonizi, izichangepay
Tags: woocommerce, crypto, cryptocurrency, payment gateway, usdt
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
WC requires at least: 7.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept cryptocurrency payments (USDT, TRX and more) on your WooCommerce store via IzichangePay.

== Description ==

IzichangePay adds a crypto payment gateway to WooCommerce. The customer pays in cryptocurrency and the order is confirmed automatically through a signed webhook.

* Hosted checkout (redirect) or on-site modal (embed.js)
* Cryptocurrencies and currencies loaded from the public IzichangePay catalog
* Confirmation through a signed webhook (HMAC-SHA256)
* Compatible with HPOS (High-Performance Order Storage)

This plugin requires WooCommerce to be installed and active.

== Installation ==

1. Go to Plugins → Add New → Upload Plugin, choose the .zip file, install it, then activate.
2. Go to WooCommerce → Settings → Payments → IzichangePay.
3. Enter the API key and the webhook secret (from your IzichangePay dashboard).
4. Declare, in your dashboard, the webhook URL shown in the settings.

== External services ==

This plugin connects to the IzichangePay payment service to create and confirm cryptocurrency payments. IzichangePay is the payment provider behind this plugin; using the gateway requires an IzichangePay merchant account.

The API base URL is configurable in the gateway settings (default: https://api.sandbox-pay.izichange.com for testing; use your production API URL when going live).

The plugin contacts these endpoints:

1. Payment intent creation — `POST /v1/payment-intents` on the configured API URL.
   When a customer places an order with this gateway, the plugin sends the order
   amount, currency, accepted cryptocurrencies, the order id and return URL, and an
   idempotency key, in order to obtain a payment link. Triggered at checkout.

2. Public catalogs — `GET /v1/public/assets` and `GET /v1/public/fiat-currencies`
   on the configured API URL. No personal data is sent; responses are cached for
   6 hours. Used in the admin settings to list supported cryptocurrencies and to
   determine whether the store currency is supported.

3. Embedded checkout widget — when the "On-site modal" mode is enabled, the script
   `embed.js` is loaded from the IzichangePay checkout origin returned in the payment
   link, to render the payment modal on the order-pay page.

IzichangePay also sends signed webhooks back to your store (HMAC-SHA256) to confirm
payment and mark the order as paid.

Service provider: IzichangePay / Izichange.
Terms of service: https://home.pay.izichange.com/conditions-generales-utilisation
Privacy policy: https://home.pay.izichange.com/politique-de-confidentialite

== Changelog ==

= 0.1.0 =
* Initial version: crypto gateway, redirect and modal modes, webhook confirmation.
