=== ToPay for WooCommerce ===
Contributors: topay
Tags: bkash, nagad, rocket, upay, bangladesh, payment gateway
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Accept bKash, Nagad, Rocket and Upay to your own number with automatic verification by ToPay.

== Installation ==

1. Zip the `topay-woocommerce` folder and upload it in WordPress → Plugins → Add New → Upload Plugin. Activate.
2. WooCommerce → Settings → Payments → ToPay → Manage.
3. Paste your API keys from ToPay Dashboard → Developers.
4. In ToPay Dashboard → Developers set the webhook URL to `https://YOURSHOP/?wc-api=topay`, copy the webhook secret into the plugin settings.
5. Turn on Sandbox mode and place a test order using TrxID `TEST12345`. Then turn sandbox off.

== How it works ==

On checkout the plugin creates an ToPay invoice and sends the customer to the ToPay payment page. When the payment is verified, ToPay calls the webhook (HMAC-signed); the plugin re-verifies through the API and marks the order paid. The thank-you page also verifies, so orders complete even if the webhook is delayed. Partial payments put the order on hold. Compatible with HPOS.
