=== MMG Payment Gateway ===
Contributors: IIS Inc.
Tags: mmg, mobile money, guyana, payment gateway, woocommerce, mmg payment
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 3.0.1
License: Proprietary

Accept MMG Mobile Money payments on any WordPress site. Automatic WooCommerce integration. No coding required.

== Description ==

MMG Payment Gateway by IIS Inc. integrates MMG Mobile Money (mymmg.gy) payments into your WordPress site with zero coding required.

= Features =
* **Setup Wizard** — step-by-step guided setup
* **Auto-detects callback URLs** — no manual configuration needed
* **WooCommerce auto-integration** — appears in WC checkout automatically
* **RSA key upload** — upload .pem files or paste key text directly
* **Sandbox & Live modes** — test before going live
* **[mmg_checkout] shortcode** — add a payment button anywhere
* **Transaction log** — full audit trail in WP Admin
* **License protected** — domain-locked via IIS license server

= Requirements =
* Python 3 with `cryptography` library (`pip3 install cryptography`)
* RSA keys from MMG (provided after merchant registration)
* MMG merchant account (mymmg.gy)
* License from https://iis.gy/mmg-plugin/

== Installation ==

1. Upload the plugin ZIP in WP Admin → Plugins → Add New → Upload
2. Activate the plugin
3. Go to WP Admin → MMG Gateway → Setup Wizard
4. Follow the 4-step setup process

== Frequently Asked Questions ==

= Do I need to register callback URLs with MMG? =
Yes. MMG requires your response/error/notify URLs before issuing credentials.
The plugin auto-generates these — go to the "Callback URLs" tab to copy them.

= WooCommerce checkout doesn't show MMG? =
Your checkout page likely uses the Gutenberg block checkout. Go to WooCommerce tab for instructions.

= What about Shopify? =
See /shopify/README.md in the plugin folder for integration options.

== Changelog ==

= 3.0.1 =
* Fix: MMG logo constrained to 25x24px on WooCommerce checkout
* Fix: Sandbox/Live toggle was always switching to Live (missing target_mode field)
* Fix: Sandbox mode now correctly routes to mmgpg.mmgtest.net

= 3.0.0 =
* Complete rewrite — wizard-based setup, URL auto-detection, file/paste key upload
* Separated sandbox and live credential stores
* New class architecture: MMG_Settings, MMG_URL_Detector, MMG_Checkout, MMG_Admin
* WooCommerce Block Checkout detection and fix guide
* Shopify integration documentation
* Improved transaction log with source tracking

= 2.3.2 =
* Previous stable release

== Upgrade Notice ==

= 3.0.1 =
New settings structure. Re-enter your credentials after upgrading.
