=== TINXDK Pensopay Auto Capture Pro ===
Contributors: tinxdk
Tags: woocommerce, pensopay, quickpay, capture, payments
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 8.2.35
Requires Plugins: tinxdk-pensopay-capture, woocommerce
WC requires at least: 8.0
WC tested up to: 9.9
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pro add-on for TINXDK Pensopay Auto Capture Lite: trigger statuses, capture now / retry, searchable capture log and failure e-mails.

== Description ==

This is the licensed add-on of the free plugin "TINXDK Pensopay Auto Capture Lite" (WordPress.org). Install and activate the free plugin first; WordPress asks for it because of the "Requires Plugins" header. This plugin does nothing (and shows a notice) while the free plugin is missing or older than 2.0.0.

With a licence key it adds:

* **Trigger statuses:** choose which order statuses trigger an automatic capture (any number of statuses, not only "Completed").
* **Capture now / retry:** an order action on the order screen and a bulk action on the orders list (HPOS and classic screens). Same amount rule as the automatic capture: order total minus refunds, or the per-order amount, never more than authorized.
* **Searchable capture log:** WooCommerce > Pensopay Auto Capture > Capture log, with search on order number, payment ID or text.
* **Failure e-mail:** an e-mail to the administrator (or another address) when a capture fails.
* **Automatic updates** from the TINXDK licence server.

Without a valid licence the Pro settings stay visible but disabled, the stored values are kept and the free plugin keeps working exactly as before (capture on "Completed", test mode, amount box, order notes, double-capture protection). If this plugin is deactivated, the free plugin keeps working and keeps the Pro settings you saved.

Licence activation: WooCommerce > Pensopay Auto Capture > License. Enter the key (TINX-XXXX-XXXX-XXXX-XXXX) and click Activate. The site URL, the plugin / WordPress / PHP versions and the key are sent to the licence server (licens.tinxdkcloud.dk) when activating, twice daily when validating and when checking for updates. Nothing else is sent. Without contact to the licence server the licence keeps working for 7 days.

Licence keys: https://tinxdkcloud.dk/wordpress-plugins/tinxdk-pensopay-capture/#licens

== Installation ==

1. Install and activate "TINXDK Pensopay Auto Capture Lite" (free, WordPress.org) and WooCommerce.
2. Upload this plugin's zip under Plugins > Add New > Upload Plugin and activate it.
3. Open WooCommerce > Pensopay Auto Capture > License, enter your key and click Activate.

== Frequently Asked Questions ==

= I had a licence for version 1.x. =
The stored licence data uses the same option names as 1.x, so this plugin finds the key you entered before. Licences are bound to a plugin; if the licence server rejects your old key for this plugin, contact TINXDK to have it moved.

= Does this plugin call Pensopay? =
No. All requests to Pensopay / QuickPay are made by the free plugin (see its External services section). This plugin only calls the TINXDK licence server for the licence and the updates.

== Changelog ==

= 2.0.1 =
* Changed: The free plugin is now called TINXDK Pensopay Auto Capture Lite; this add-on's texts follow. No functional change.

= 2.0.0 =
* Split from the single plugin `tinxdk-wp-pensopay-capture` 1.x: the licensed features (trigger statuses, "Capture now / retry" order and bulk action, searchable capture log, failure e-mail, licence and updates) now live in this add-on; capture on "Completed", the amount box, test mode, order notes and double-capture protection are in the free plugin "TINXDK Pensopay Auto Capture Lite". Settings, the log table, order meta and licence data are unchanged.
* Renamed from `tinxdk-wp-pensopay-capture`; new slug `tinxdk-pensopay-capture-pro`.
* Needs the free plugin 2.0.0 or newer; inert with an admin notice otherwise.

== Upgrade Notice ==

= 2.0.1 =
The free plugin is now called TINXDK Pensopay Auto Capture Lite (no functional change).

= 2.0.0 =
Install the free plugin "TINXDK Pensopay Auto Capture Lite" 2.0.0 first. Settings and licence are kept.
