=== RohoPay Payment Gateway ===
Contributors: rohopay
Tags: woocommerce, payment, gateway, mobile money, uganda, shortcodes, donations
Requires at least: 5.8
Tested up to: 6.4
Stable tag: 1.4.0
Requires PHP: 7.4
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Accept payments via MTN MoMo, Airtel Money, and card payments through RohoPay. Embed payment buttons and donation forms anywhere with shortcodes.

== Description ==

RohoPay Payment Gateway for WooCommerce enables you to accept payments via:

* MTN Mobile Money (MoMo)
* Airtel Money
* Card payments (Visa/Mastercard)

**New in 1.1.0:** Embed payment buttons anywhere with shortcodes:

* `[rohopay_pay amount="25000" label="Buy Now"]` — Fixed-amount pay button
* `[rohopay_donation amounts="10000,25000,50000" title="Support Us"]` — Donation form with preset amounts

Simply install the plugin, configure your API key from the RohoPay dashboard,
and start accepting payments.

== Installation ==

1. Upload the `rohopay-woocommerce` folder to `/wp-content/plugins/`
2. Activate the plugin through the Plugins menu in WordPress
3. Go to WooCommerce > Settings > Payments and enable RohoPay
4. Enter your API Key and Webhook Secret from the RohoPay dashboard
5. Save changes

== Frequently Asked Questions ==

= Which payment methods are supported? =

MTN Mobile Money, Airtel Money, and card payments (Visa/Mastercard).

= Is test mode available? =

Yes. Enable "Test Mode" in the plugin settings to use the sandbox environment.

= Can I use payment buttons on any page? =

Yes. Use the `[rohopay_pay]` or `[rohopay_donation]` shortcode on any page or post. No WooCommerce store required.

== Changelog ==

= 1.5.0 =
* Renamed "Site Token" to "Webhook Secret" across all UI for clarity
* Added inline help text explaining each credential (API Key, Webhook Secret)
* Gateway settings now fall back to shared credentials if per-gateway fields are empty
* Fixed: webhook secret not returned on connection creation (DB store bug)
* Fixed: duplicate `download_url` in update manifest

= 1.1.0 =
* Added shortcodes: `[rohopay_pay]` and `[rohopay_donation]` for embedding payment buttons anywhere
* Added payment modal with Mobile Money / Card method selection
* Added phone input with country code and validation
* Added polling UI with progress bar and "I've Paid — Check Now" button
* Added donation form with preset amounts and custom amount support

= 1.0.0 =
* Initial release
