=== AywaPay for WooCommerce ===
Contributors: aywapay
Tags: crypto, bitcoin, usdt, payment gateway, woocommerce
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept Bitcoin, USDT, Ethereum and other cryptocurrencies in your WooCommerce store.

== Description ==

AywaPay adds a "Pay with crypto" option to your checkout. The customer is sent to the secure AywaPay payment page, picks a coin and pays. The order moves to Processing as soon as the payment is confirmed on the blockchain.

* Bitcoin, Ethereum, USDT (TRON, Ethereum, BNB Chain), USDC, Litecoin, TRX, BNB and more.
* Prices stay in your store currency; AywaPay converts at the live rate.
* Orders update automatically: on-hold while confirming, Processing when paid, Failed when the invoice expires unpaid (the customer can pay again from their account).
* Overpaid and underpaid payments are flagged in the order notes.
* Works with the classic checkout and the Checkout block, and with High-Performance Order Storage.
* Test mode: use a test key to try the whole flow without real money.

= Third-party service =

This plugin sends order details to the AywaPay API (https://api.aywapay.com) to create a payment invoice: the order number, total, currency and the customer's email address. The customer pays on the AywaPay payment page. AywaPay then calls your store back at `/?wc-api=aywapay` to report the payment.

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

== Installation ==

1. Create an account at https://pay.aywapay.com and add a store.
2. In the store, open API and copy the secret key.
3. In WordPress, install and activate this plugin.
4. Go to WooCommerce → Settings → Payments → AywaPay, paste the secret key, tick "Enable" and save.

You do not need to set a callback URL in AywaPay: the plugin sends its own with every invoice.

== Frequently Asked Questions ==

= How do I test before going live? =

In your AywaPay store, create a test key (it starts with `test_`) and paste it in the plugin settings. Test invoices have buttons on the payment page to simulate a payment, an overpayment, an underpayment or an expiry. Swap in your live key when you are ready.

= The order stays "Pending payment" =

Your site must be reachable from the internet over HTTPS for AywaPay's callback to arrive. Turn on the debug log in the plugin settings and look under WooCommerce → Status → Logs (source "aywapay"). In your AywaPay dashboard, each invoice shows whether its callback was delivered.

= Can I refund from WooCommerce? =

Not yet. Refund from the invoice in your AywaPay dashboard; the customer is paid back in the coin they used.

== Changelog ==

= 1.0.0 =
* First release.
