=== NoCustPay for WooCommerce ===
Contributors: nocustpay
Tags: crypto, payments, woocommerce, bitcoin, usdt
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept crypto payments (USDT, USDC, ETH, BTC) in WooCommerce through NoCustPay. Works with the block checkout and the classic checkout.

== Description ==

NoCustPay for WooCommerce adds a "Crypto" payment method. The customer is sent to a NoCustPay payment page, pays in the coin of their choice, and the order is marked paid when NoCustPay confirms the payment.

* Block checkout and classic checkout.
* High-Performance Order Storage (HPOS) compatible.
* Overpaid payments are accepted with a note; underpaid payments put the order on hold; expired or cancelled payments cancel a pending order.
* A payment is recorded once, as the order's transaction id, however many times it is reported.
* Payments that arrive after an order was cancelled reopen it with a stock warning.

= External service =

This plugin connects to the NoCustPay API (https://api.nocustpay.com) to create and verify crypto payments. It is required for the plugin to work.

Data sent when a customer chooses to pay: the customer's billing name and email address, the order total and currency, an order description ("Order #123 - store name"), the order id, the plugin version, a site fingerprint (a short hash of your site address, so a payment made on another site that shares your NoCustPay account is ignored), and three URLs on your site (success, cancel, webhook). The plugin also sends your API key with every request, and asks NoCustPay for the checkout session's status when the customer returns to your store.

NoCustPay sends signed webhooks to your site when a payment changes status.

* Terms of service: https://nocustpay.com/terms
* Privacy policy: https://nocustpay.com/privacy

== Installation ==

1. Upload the plugin zip in Plugins > Add New > Upload, and activate it. WooCommerce must be active.
2. Go to WooCommerce > Settings > Payments > NoCustPay.
3. Enter the API key (needs the payments:write and payments:read permissions) and the webhook signing secret from the Webhooks page of your NoCustPay dashboard, then enable the method.

== Frequently Asked Questions ==

= Which currencies are supported? =

USD EUR GBP CAD AUD JPY CNY KRW INR BDT PKR LKR NPR IDR MYR SGD THB PHP VND AED SAR TRY EGP NGN KES GHS ZAR BRL MXN ARS COP. The method is hidden at checkout for other currencies.

= Where are errors logged? =

WooCommerce > Status > Logs, source "nocustpay". API failures are always logged; request and payment statuses are logged only when the debug log is on.

== Changelog ==

= 2.0.0 =
* Uses NoCustPay checkout sessions; the customer returns with session_id.
* Webhooks answer 401, 200 or 500 so failed deliveries are retried.
* Orders are updated inside a per-order lock.
* The API base URL setting is removed.

= 1.0.0 =
* First release.
