=== Zenofy Checkout for WooCommerce ===
Contributors: zenofy
Tags: woocommerce, payment, zenofy, checkout, mpesa
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Accept payments on your WooCommerce store via Zenofy API gateway checkout.

== Description ==

This plugin adds a WooCommerce payment gateway that:

1. Creates a variable-amount checkout via `POST /checkout/order-api-gateway`
2. Redirects the customer to Zenofy Pay (`/c/{orderId}`)
3. Marks the WooCommerce order paid when Zenofy sends `payment.succeeded` to your webhook URL

== Installation ==

1. Upload the plugin ZIP via WordPress → Plugins → Add New → Upload
2. Activate **Zenofy Checkout for WooCommerce**
3. In Zenofy App, create an **API gateway** product with webhook URL:
   `https://your-store.com/wp-json/zenofy/v1/webhook`
4. WooCommerce → Settings → Payments → Zenofy Checkout:
   - API base URL (default `https://api.zenofy.io`)
   - Checkout API key
   - API gateway product ID
   - Webhook signing secret (same as on the Zenofy product)

== Frequently Asked Questions ==

= Why is phone required? =

Zenofy checkout API requires customer phone in E.164 format (e.g. +258840000000). Enable a required billing phone field at checkout.

== Changelog ==

= 1.0.0 =
* Initial release
