=== EsperWorks Invoicing ===
Contributors: esperworks
Tags: invoicing, woocommerce, payments, africa
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0+

Automatically create EsperWorks invoices when WooCommerce orders are placed.

== Description ==

Connect your WooCommerce store to EsperWorks to automatically:

* Create a professional invoice for every order
* Sync customers as EsperWorks clients (deduped by email)
* Optionally auto-send the invoice to the customer
* View the EsperWorks invoice directly from the WooCommerce order admin page

== Installation ==

1. Upload the `esperworks-invoicing` folder to `/wp-content/plugins/`
2. Activate the plugin in WordPress Admin → Plugins
3. Go to Settings → EsperWorks
4. Paste your API key from [EsperWorks → Developer](https://tryesperworks.com/dashboard/developer)
   - The key needs `invoices:write` and `clients:write` scopes
5. Configure auto-send and payment terms, then save

== Frequently Asked Questions ==

= Where do I get my API key? =
Log in to EsperWorks, go to Dashboard → Developer API, and create a key with `invoices:write` and `clients:write` scopes.

= Will it create duplicate invoices? =
No. The plugin stores the EsperWorks invoice ID on each order and skips orders that already have one.

= Which order statuses trigger invoice creation? =
`processing` and `payment_complete` — i.e. when payment is confirmed.

== Changelog ==

= 1.0.0 =
* Initial release
