=== DocuHook ===
Contributors: rustemas
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce / WordPress connector for the DocuHook Webhook to PDF API.

== Description ==

Connect WordPress and WooCommerce to DocuHook (https://docuhook.com) to merge order JSON into HTML invoice templates and produce PDFs.

* Settings: API URL and API key
* `docuhook_render( $data, $html, $args )` helper for themes and plugins
* WooCommerce order.completed → invoice examples in this repo
* Admin test render button
* Sync or async (job) mode

Get an API key at https://docuhook.com/register
GitHub: https://github.com/rustemas/docuhook-woocommerce

== External services ==

This plugin connects to the DocuHook API (https://docuhook.com) to merge JSON data into an HTML template and return a rendered document (HTML/PDF). That connection is required for the plugin to work; PDF generation does not run on your WordPress server.

When you (or your theme/plugin code) call a render, or when you use the admin “Send test render” action, the plugin sends an authenticated HTTPS request to your configured API URL (default: https://docuhook.com). The request includes:

* Your DocuHook API key (Authorization header)
* The JSON `data` you supply (for example order fields you choose to send)
* The HTML template string you supply
* Optional filename and sync/async mode

In async mode, the plugin may also request job status and result endpoints for the same job.

No data is sent until you configure an API key and a render is triggered. DocuHook is operated by RG Dev Studio.

* Terms of Service: https://docuhook.com/terms
* Privacy Policy: https://docuhook.com/privacy

== Installation ==

1. Upload the `docuhook` folder to `/wp-content/plugins/` or install from the zip
2. Activate the DocuHook plugin
3. Go to Settings → DocuHook and paste your API URL and API key
4. Click Send test render

== Frequently Asked Questions ==

= Do I need a DocuHook account? =

Yes. Register at https://docuhook.com/register and create an API key under Account.

= Does this generate PDF files inside WordPress? =

The plugin calls the DocuHook API, which merges your JSON and HTML template. Use the returned HTML or your DocuHook plan features for PDF delivery.

== Changelog ==

= 1.0.1 =
* Document external DocuHook API use (terms and privacy links)
* Set WordPress.org Contributors to plugin owner username

= 1.0.0 =
* Initial release
