=== Cashera for WooCommerce ===
Contributors: cashera
Tags: woocommerce, payments, cashera, sbp
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Accept payments in WooCommerce via Cashera Integration API (redirect + webhook).

== Description ==

Cashera for WooCommerce adds a redirect payment gateway:

* Creates a Cashera transaction on checkout (classic + Cart/Checkout Blocks)
* Redirects the customer to `payment_url`
* Completes the order when Cashera sends a webhook (`X-Api-Key` + `X-Secret`)
* HPOS compatible

Store currency must be RUB. Configure API Key, API Secret, and payment method code in WooCommerce → Settings → Payments → Cashera.

== Installation ==

1. Upload the plugin ZIP via Plugins → Add New → Upload Plugin
2. Activate the plugin
3. Configure Cashera under WooCommerce → Settings → Payments
4. Ensure the webhook URL is reachable over HTTPS

== Changelog ==

= 1.0.1 =
* Audit fixes: preserve API secrets on save, HTTPS URLs, Blocks checkout, webhook amount/currency checks
* Register WC-API webhook once outside gateway constructor
* Validate payment_url and API base URL

= 1.0.0 =
* Initial release: create payment, redirect, webhook completion
