=== Duka Relay Gateway for WooCommerce ===
Tags: woocommerce, mpesa, daraja, kenya, payments
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
Stable tag: 0.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Accept Kenyan M-PESA payments directly through your own Safaricom Daraja app and Paybill or eligible Till.

== Description ==

Duka Relay Gateway handles STK Push and verified order updates for KES orders through Safaricom Daraja. It supports classic checkout, Checkout Blocks, and WooCommerce High-Performance Order Storage. The gateway includes sandbox and live modes and a local development simulator. Use WooCommerce order actions to check a payment manually.

== Installation ==

1. Activate WooCommerce, then activate Duka Relay Gateway.
2. Open WooCommerce > Settings > Payments > M-Pesa STK Push.
3. Set your Daraja environment, credentials, business shortcode, and receiving account. Use a public HTTPS callback URL and test with your Daraja sandbox before switching to live credentials.

== External services ==

This plugin uses the Safaricom Daraja API when you use sandbox or live checkout. It sends the merchant API credentials needed for authentication and sends the buyer's M-PESA phone number, order amount, and order reference to initiate STK Push. It queries Daraja with request identifiers to verify the outcome. Callbacks and order status are processed on your own site. Local simulation sends no Daraja requests.

Daraja documentation and applicable terms: https://developer.safaricom.co.ke/
Safaricom privacy statement: https://www.safaricom.co.ke/dataprivacystatement/

== Changelog ==

= 0.3.0 =
* Sandbox and live gateway features are free.
* Added Checkout Blocks support and better handling of inconsistent callbacks and interrupted payment completion.
