=== UTOPAY Payments for WooCommerce ===
Contributors: utopay
Tags: payments, crypto, usdt, credit card, paypal
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.0
WC requires at least: 3.9
WC tested up to: 10.2
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept cards, Apple Pay, Google Pay, PayPal, Revolut and crypto (USDT, USDC, ETH…) through UTOPAY.

== Description ==

Two payment methods:

* **UTOPAY — cards & PayPal** — 4.5% all-in. The buyer pays on the UTOPAY page; the payout arrives in USDC on Polygon to your wallet (or to the UTOPAY balance in your currency).
* **UTOPAY — crypto** — 1.5%. The buyer picks a coin at checkout and sends it to a unique address; the coin goes straight to your wallet.

Orders are completed automatically: UTOPAY sends a signed notification to your shop, and the plugin re-checks the payment through the API before marking the order paid (amount and currency must match). Underpaid crypto orders are put on hold.

Works with the classic checkout and the Cart & Checkout blocks, and supports High-Performance Order Storage (HPOS).

Refunds and subscriptions are not supported.

== External services ==

This plugin connects to the UTOPAY payment API (https://api.utopay.app), operated by UTOPAY. It is required to create payments, check their status and show the available crypto coins.

* When the settings are saved, the secret key is sent to the API to verify it and to load the list of available coins.
* When a buyer places an order with a UTOPAY method, the order number and shop name, amount, currency, the buyer's email address, the selected coin (crypto method) and the shop's return and notification URLs are sent to create the payment. The buyer is then redirected to the UTOPAY payment page (https://utopay.app) or shown a crypto address.
* When UTOPAY notifies the shop about a payment, or the buyer returns to the "Thank you" page, the plugin requests the payment status from the API by its ID.

No data is sent until the plugin is configured with a secret key and a UTOPAY payment method is used.

UTOPAY terms of service: https://utopay.app/terms
UTOPAY privacy policy: https://utopay.app/privacy

== Installation ==

1. Plugins → Add New → Upload Plugin → choose the ZIP → Install → Activate.
2. In the UTOPAY dashboard (https://utopay.app/login) create a secret key: Integration → API keys. Use a `utopay_sk_test_…` key first.
3. WooCommerce → Settings → Payments → “UTOPAY — cards & PayPal”: paste the key, enable, save.
4. For crypto: add wallets for the networks you need in the dashboard (Funds & payouts → Crypto wallets), then enable “UTOPAY — crypto” and pick the coins.
5. Place a test order and simulate a payment on the sandbox page. The order becomes Processing. Switch to the `utopay_sk_live_…` key.

Nothing has to be configured for notifications: every payment carries its own callback URL.

== Frequently Asked Questions ==

= Which store currencies work? =

USD EUR GBP CAD AUD NZD CHF SEK NOK DKK PLN CZK HUF TRY UAH INR JPY SGD HKD AED MYR THB PHP IDR BRL MXN COP ZAR NGN. With another store currency the methods are hidden.

= The order stays “Pending payment” =

The shop must be reachable from the internet for notifications (not localhost, not behind HTTP auth). The order is also confirmed when the buyer returns to the “Thank you” page. Enable “Debug log” and check WooCommerce → Status → Logs → utopay.

== Changelog ==

= 1.0.5 =
* WordPress.org review: documented external services, Requires Plugins header, translations via translate.wordpress.org.

= 1.0.4 =
* WordPress.org release: text domain utopay-payments-for-woocommerce, HTTP via the WordPress HTTP API, escaping fixes. Tested with WordPress 7.1.

= 1.0.3 =
* Reads the renamed API fields (payout_tx_hash, received_amount); older servers still supported.

= 1.0.2 =
* Shared UTOPAY core updated (no behaviour change).

= 1.0.1 =
* UTOPAY_API_BASE constant for white-label API domains; default coins are EVM networks.

= 1.0.0 =
* First release: cards & PayPal, crypto, blocks checkout, HPOS.
