=== CapitalPay Gateway for WooCommerce ===
Contributors: Collect Group
Tags: woocommerce, payment, acquiring, capitalpay, gateway
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrate CapitalPay payment acquiring system with WooCommerce checkout.

== Description ==

CapitalPay Gateway for WooCommerce allows you to accept payments via CapitalPay in your WooCommerce store. It's easy to install and configure. Customers are redirected to CapitalPay's secure hosted payment page and then returned to your site after completing the payment.

== Installation ==

1. Download the plugin ZIP file provided by CapitalPay.
2. In your WordPress admin panel, go to: `Plugins` → `Add New` → `Upload Plugin`.
3. Select the downloaded ZIP file and click “Install Now”.
4. After installation, click “Activate Plugin”.

== Configuration ==

1. Go to `WooCommerce` → `Settings` → `Payments`.
2. Find “CapitalPay” in the list and click “Manage”.
3. Fill in the required settings:

   - **Enable** – Check to enable the gateway.
   - **Method name** – This is what the customer sees during checkout (e.g. “Pay via CapitalPay”).
   - **Description** – Optional. Shown below the payment method at checkout.
   - **Cash Desk UUID** – Provided by CapitalPay (required).
   - **Secret Key** – Provided by CapitalPay (required).

4. Click “Save changes”.

The plugin will handle status updates like:
- `Paid` → Order marked as completed
- `Canceled` → Order marked as cancelled
- `Failed` → Order marked as failed

== Frequently Asked Questions ==

= Is SSL required? =
Yes. CapitalPay only works over secure HTTPS connections.

= Where do I get the Cash Desk UUID and Secret Key? =
These are provided by CapitalPay support when your merchant account is created.

= Does this plugin support WooCommerce blocks (new checkout)? =
Yes, CapitalPay works with both the classic and new block-based checkout.

= Can I test the plugin before going live? =
Yes, you can use CapitalPay's sandbox environment for testing. Contact their support to get sandbox credentials.

== Changelog ==

= 1.0.0 =
* Initial release
* Supports standard and block-based checkout
* Webhook integration for automatic order status update

== Upgrade Notice ==

= 1.0.0 =
First public release of the CapitalPay Gateway plugin.


