=== AnyCoin Payment Gateway ===
Contributors: AnyCoin  
Donate link: https://acceptanycoin.com  
Tags: payments, crypto, woocommerce, anycoin, zano
Requires at least: 6.2  
Tested up to: 7.1
Requires PHP: 7.4  
Stable tag: 1.1.0
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  

A non-custodial payment processor for WordPress/WooCommerce that allows merchants to accept cryptocurrency with AnyCoin.

== Description ==

The AnyCoin Payment Gateway plugin enables WooCommerce stores to accept cryptocurrency payments directly, without requiring a third-party payment processor. This non-custodial solution gives merchants full control over their funds.

= Key Features =

* Non-custodial: You maintain full control of your funds  
* Multi-asset support: Accept ZANO and fUSD cryptocurrencies
* Real-time monitoring: Automatic blockchain transaction verification  
* QR code payments: Easy mobile wallet integration  
* Integrated addresses: Unique payment IDs for each transaction  
* Admin dashboard: Transaction oversight and management
* Automated processing: Background monitoring and status updates  

= Supported Assets =

* ZANO
* fUSD  

= How It Works =

1. Customer selects AnyCoin payment at checkout  
2. System generates unique integrated address with payment ID  
3. Customer scans QR code or copies payment details  
4. Customer sends payment from their cryptocurrency wallet  
5. Plugin monitors blockchain for payment confirmation  
6. Order status updates automatically when confirmed  

== Installation ==

1. Upload plugin ZIP through **Plugins → Add New → Upload Plugin**
2. Activate the plugin
3. Go to **WooCommerce → Settings → Payments → AnyCoin Payment**
4. Enter your wallet address and private view key
5. Save settings

== Frequently Asked Questions ==

= Is this plugin custodial? =

No, this is a non-custodial solution. Payments go directly to your cryptocurrency wallet address.

= What cryptocurrencies are supported? =

Currently supports ZANO and fUSD assets on the Zano blockchain network.

= Do I need to run a blockchain node? =

No, the plugin connects to public blockchain nodes by default.

= How are payments verified? =

Payments are detected by securely scanning the blockchain using your wallet’s private view key. This allows the plugin to identify incoming transactions to your address without exposing your funds or private spend key.

= Is there a transaction fee? =

The plugin itself doesn't charge fees. You only pay standard network transaction fees.

== Screenshots ==

1. Checkout page with AnyCoin payment option  
2. Payment details page with QR code  
3. Admin transaction management dashboard  
4. Plugin configuration settings  

== Changelog ==

= 1.1.0 =
* Zano Hard Fork 6 (HF6) support: payments are now matched using intrinsic per-output payment IDs decoded directly from the Zano node
* A single transaction can now pay multiple orders with different payment IDs and assets, as allowed after HF6
* Safe handling of 64-bit payment IDs in node responses
* Database migration: transaction uniqueness is now enforced per transaction + payment ID instead of per transaction
* Security: payment amounts are now always computed server-side and FUSD payments are amount-verified like ZANO
* Fixed: transactions are only matched against the asset the order expects
* Fixed: intrinsically verified payments are no longer re-verified through the external API, preventing paid orders from being marked failed
* Fixed: the status update task now honors the configured confirmation threshold
* Note: the configured Zano node must run version 2.2.1.501 or newer

= 1.0.5 =
* Minor Fixes

= 1.0.4 =  
* Minor Fixes

= 1.0.3 =  
* Minor Fixes

= 1.0.2 =  
* Image Fixes

= 1.0.1 =  
* Initial release  
* Non-custodial cryptocurrency payment processing  
* ZANO and fUSD asset support  
* Real-time blockchain monitoring  
* QR code payment integration  
* Admin dashboard and automated verification

== Privacy Policy ==

This plugin connects to external blockchain nodes to verify payments using publicly available blockchain data. No personal customer information is transmitted to external services.

== Videos ==

https://www.youtube.com/watch?v=fcSA3eUwNPo 

== External Services ==

This plugin connects to the following third-party/external services:

1. AnyCoin Verification API
   - Purpose: Verify Payment ID details for transactions and assist with asset metadata.
   - Endpoint base: https://api.acceptanycoin.com
   - Data sent: Transaction hash, payment ID, and wallet address necessary for verification; no customer PII is sent.
   - When: During payment verification and monitoring.
   - Terms/Privacy: See provider policies on `https://www.acceptanycoin.com/terms-of-service`.

2. Zano Explorer API
   - Purpose: Retrieve transaction block/confirmation details for verification.
   - Endpoint: https://explorer.zano.org/api/get_tx_details/{tx_hash}
   - Data sent: Transaction hash only; no customer PII.
   - When: During payment monitoring to compute confirmations.
   - Privacy: Public blockchain explorer (no account data stored by this plugin).

3. MEXC Price API
   - Purpose: Fetch ZANO/USD price to estimate conversion amounts.
   - Endpoint: https://api.mexc.com/api/v3/ticker/price?symbol=ZANOUSDT
   - Data sent: None (GET request only); no customer PII.
   - When: On admin screens and at checkout to compute displayed amounts.
   - Terms/Privacy: `https://www.mexc.com/terms`

Notes:
- You may self-host alternatives for verification or QR generation if desired.
- Network endpoints can be configured within plugin settings where applicable.

== Upgrade Notice ==

= 1.0.0 =
Initial release of AnyCoin Payment Gateway - non-custodial cryptocurrency payment processing for WooCommerce.

== Support ==

For support, please visit https://acceptanycoin.com/anycoin-payment-processor