=== CredixPayments ===
Contributors: soportetecnicocredix
Tags: woocommerce, payment gateway, credit card, checkout, installments
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.9
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Credix payment gateway for WooCommerce. Supports Costa Rican colones (CRC) and US dollars (USD) only.

== Description ==

CredixPayments adds the Credix payment gateway to WooCommerce checkout.

Key features:

- Supports only CRC and USD currencies.
- Shows an admin warning if store currency is not supported.
- Shows a customer notice on checkout when currency is unsupported.
- Works with both Classic Checkout and WooCommerce Blocks Checkout.
- Card form includes:
  - Card number
  - Expiry month and year selectors
  - 3-digit CVC
  - Installment (quota) selector
- Configurable installments from 1 to 36 months.
- Configurable API URL, API user and API password.
- Optional test mode to allow HTTP in local/development environments.
- HPOS compatibility declared.
- Translatable strings (English source, Spanish translation included).

Important:

- This gateway is available only when the WooCommerce store currency is set to CRC or USD.
- Make sure your Credix API credentials are configured in WooCommerce payment settings.

== Installation ==

1. Upload the `credixpayments` folder to `/wp-content/plugins/`.
2. Activate **CredixPayments** from **Plugins** in WordPress admin.
3. Go to **WooCommerce > Settings > Payments**.
4. Enable **Credix Payments** and click **Manage**.
5. Configure:
   - API URL
   - API user
   - API password
   - Available installments
   - Test mode (optional)
6. Save changes.

== Frequently Asked Questions ==

= Why is the Credix payment method not showing at checkout? =

Common reasons:

- The gateway is disabled in WooCommerce settings.
- Store currency is not CRC or USD.
- SSL is required and your site is not HTTPS (when test mode is disabled).

= Which currencies are supported? =

Only:

- CRC (Costa Rican colones)
- USD (US dollars)

= Does it support WooCommerce Blocks checkout? =

Yes. The gateway is registered for WooCommerce Blocks payment methods.

= Is the plugin translated? =

Yes. The plugin is translation-ready and includes Spanish (`es_ES`) translation files.

== Changelog ==

= 1.0.9 =
- Prefixed gateway class and AJAX actions for WordPress Plugin Check compliance.
- Removed redundant load_plugin_textdomain() (WordPress.org auto-loads translations).
- Updated Contributors list.

= 1.0.8 =
- Added strict currency restriction to CRC and USD.
- Added admin notice for unsupported store currency.
- Added checkout notice for unsupported currency.
- Improved WooCommerce Blocks integration and load-order safety.
- Added translation loading and updated translatable strings.
- Added Spanish translation files.
- Updated checkout card form:
  - Expiry date changed to month/year selects.
  - CVC restricted to 3 digits.
  - Expiry month labels shown as `(01) January` format (localized).
- Added styles for improved expiry selects layout in Classic and Blocks checkout.

== Upgrade Notice ==

= 1.0.9 =
Compliance update for WordPress.org plugin review (prefixes, translations, contributors).

= 1.0.8 =
This update enforces CRC/USD currency support and updates checkout fields (expiry selects and 3-digit CVC).
