=== NoCustPay for Easy Digital Downloads ===
Contributors: nocustpay
Tags: crypto, payments, easy digital downloads, bitcoin, usdt
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
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 Easy Digital Downloads through NoCustPay.

== Description ==

NoCustPay for Easy Digital Downloads adds a "Crypto" payment gateway. The customer is sent to a NoCustPay payment page, pays in the coin of their choice, and the order is completed when NoCustPay confirms the payment.

* Overpaid payments are completed with a note; underpaid payments put the order on hold; expired or cancelled payments mark a pending order failed.
* A payment is recorded once, as the order's transaction ID, however many times it is reported.
* Payments that arrive after an order failed complete it with a note.

= 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 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. Easy Digital Downloads 3.0 or newer must be active.
2. Go to Downloads > 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.
4. Under Downloads > Settings > Payments > General, tick NoCustPay in the list of enabled gateways.

== 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 gateway is hidden at checkout for other currencies.

= Where are errors logged? =

Downloads > Tools > Logs > Gateway Errors. API failures are always logged. Request and payment statuses go to the EDD debug log only when the NoCustPay debug setting 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.
