=== Cetelem Payment Gateway ===
Contributors: cetelempayments, dabasystemwp, alevazke
Tags: woocommerce, payment, ecommerce, financing, bank
Requires at least: 5.0
Tested up to: 6.9.4
Stable tag: 3.4.3
WC requires at least: 5.6
WC tested up to: 10.6
Requires PHP: 7.4
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Add to WooCommerce a Banco Cetelem payment gateway.

== Description ==
**IMPORTANT: *WC - Cetelem payment gateway* required WooCommerce 2.1.0 or higher.**

**WC - Cetelem payment gateway** add to your WooCommerce shop the possibility of including one or two Banco Cetelem payment gateway.

= Features =
* You can choose your own NIF/CIF form field or leave to **WC - Cetelem payment gateway** generate it automatically.
* You can customize title and description with your own text.
* You can test your transactions with our testing mode. 
* Filters:
1. woocommerce_cetelem_icon and woocommerce_cetelem_cuotas_icon: serve to be able to customize the payment method icon.
2. woocommerce_cetelem_data and woocommerces_cetelem_cuotas_data: used to manipulate the data sent to Cetelem during the payment process.
3. woocommerce_cetelem_preauthorized and woocommerce_cetelem_cuotas_preauthorized: used to customize the order status for preauthorized transactions. Default: on-hold.
4. woocommerce_cetelem_authorized and woocommerce_cetelem_quotas_authorized: used to customize the order status for authorized operations. Default: processing.
5. woocommerce_cetelem_99 and woocommerce_cetelem_quotas_99: used to customize the order status for rejected operations. Default: failed.
6. woocommerce_cetelem_51 and woocommerce_cetelem_quotas_51: used to customize the order status for rejected operations. Default: cancelled.
7. woocommerce_cetelem_failed and woocommerce_cetelem_cuotas_failed: used to customize the order status for failed operations. Default: failed.
8. woocommerce_cetelem_calculator: used to customize the empty calculator when the price is lower than the minimum amount.

= Translations =
* Español ([**Banco Cetelem S.A.U.**](https://www.cetelem.es/banco/)).
* English ([**Banco Cetelem S.A.U.**](https://www.cetelem.es/banco/)).

== Installation ==
1. You can:
 * Upload the `cetelem-payment-gateway` folder to `/wp-content/plugins/` directory via FTP. 
 * Upload the full ZIP file via *Plugins -> Add New -> Upload* on your WordPress Administration Panel.
 * Search **WC - Cetelem payment gateway** in the search engine available on *Plugins -> Add New* and press *Install Now* button.
2. Activate plugin through *Plugins* menu on WordPress Administration Panel.
3. Set up plugin on *WooCommerce -> Settings -> Payments* or through *Settings* button.
4. Ready, now you can enjoy it.

== External Services ==

This plugin connects to an external service provided by Banco Cetelem S.A.U. to display a financing calculator and retrieve the current interest rates.

External URLs:
- https://ecommercecalculadora.cetelem.es/eCommerceCalculadora/resources/js/
- https://test.cetelem.es/eCommerceCalculadora/resources/js/
- https://www.cetelem.es/addons/importe_enc.txt

What it does:
- It loads a remote JavaScript file to display the Cetelem calculator inside WooCommerce product and checkout pages.
- It loads a text file to display the current interest rates and finance options.

What data is sent:
- The plugin does **not** send or collect any information from your WordPress site or its users.
- It simply retrieves static resources needed for the calculator to work.

Service provider:
- Banco Cetelem S.A.U.  
- Terms of service: [https://www.cetelem.es/aviso-legal](https://www.cetelem.es/aviso-legal)  
- Privacy policy: [https://www.cetelem.es/politica-de-privacidad](https://www.cetelem.es/politica-de-privacidad)

== Frequently asked questions ==
= How do you set up? =
1. Go to *WooCommerce -> Settings -> Payments* and select witch mode do you need.
2. Go to *WooCommerce -> Settings -> Payments -> Interest free financing to X months (TAE x%)* and/or *WooCommerce -> Settings -> Payments -> Flexible financing*, configure your *Commerce code* and customize your *Title* and *Description*.

== Screenshots ==
1. Screenshot of WC - Cetelem payment gateway.
2. Screenshot checkout page Cetelem Payment.
3. Screenshot calculator from product page.

== Changelog ==
= 3.4.3 =
* Parches de seguridad y estabilidad.
= 3.4.2 =
* Disable cetelem nonde in notification.
= 3.4.1 =
* URL changes due to the migration of Cetelem websites.
= 3.3.8 =
* Bug fixes and error corrections.
* Interface improvements.
* Compatibility improvements.
= 3.3.6 =
* Bug fixes and error corrections.
* Added multilingual system (Spanish, English, Valencian, Catalan, Galician, French).
* Functional improvements in calculator.
= 3.3.5 =
* Modified price display in calculator.
* Bug fixes and error corrections.
* Usability improvements.
* New user registration system.
* Delivery points by postal code.
* Performance enhancements
= 3.0 =
* Added support for checkout block.
= 2.9.0.9 =
* Albaran parameter with up to 13 digits.
= 2.9.0.8 =
* Fix for order numbers above 6 digits.
= 2.9.0.7 =
* Minor fixes.
= 2.9.0.6 =
* Minor fixes.
= 2.9.0.5 =
* Minor fixes.
= 2.9.0.4 =
* Minor fixes.
= 2.9.0.3 =
* Minor fixes.
= 2.9.0.2 =
* Minor fixes.
= 2.9.0.1 =
* Minor fixes.
= 2.9 =
* Updated HPOS compatibility.
* Minor fixes.
* New filters added: woocommerce_cetelem_minimum and woocommerce_ecredit_minimum.
= 2.8.0.2 =
* Minor fixes.
= 2.8.0.1 =
* Minor fixes.
= 2.8 =
* Minor fixes.
* New calculator.
* Added support for HPOS.
* New filters added: woocommerce_cetelem_icon, woocommerce_cetelem_cuotas_icon, woocommerce_cetelem_data, woocommerces_cetelem_cuotas_data, woocommerce_cetelem_preauthorized, woocommerce_cetelem_cuotas_preauthorized, woocommerce_cetelem_authorized, woocommerce_cetelem_cuotas_authorized, woocommerce_cetelem_99, woocommerce_cetelem_cuotas_99, woocommerce_cetelem_51, woocommerce_cetelem_cuotas_51, woocommerce_cetelem_failed, woocommerce_cetelem_cuotas_failed y woocommerce_cetelem_calculator.
= 2.7 =
* New calculator enCuotas.
= 2.6.0.3 =
* Minor fixes.
= 2.6.0.2 =
* Minor fixes.
= 2.6.0.1 =
* New purchase limit at Cetelem.
= 2.6 =
* New calculator enCuotas.
* New rules in Cetelem calculator.
= 2.5.0.2 =
* Minor fixes.
= 2.5.0.1 =
* Minor fixes.
= 2.5 =
* Minor fixes.
* Added cetelem_calculator filter to display custom text when calculator isn't displayed.
* New configuration form.
* New screenshot.
* Added enCuotas payment gateway.
= 2.4.7 =
* Shortcode fix.
* Updating update libraries.
= 2.4.6.1 =
* Shortcode fix.
= 2.4.6 =
* Shortcode fix.
= 2.4.5 =
* Minor fixes.
* Compatibility with Cloudflare.
* Added list of months by default.
= 2.4.4 =
* Add special code field.
= 2.4.3 =
* ReturnOK fix.
= 2.4.2 =
* JavaScript fix.
= 2.4.1 =
* Show calculator in the description.
* Add price attribute to calculator shortcode.
= 2.4.0.1 =
* Minor fixes.
= 2.4 =
* Elimination of modes.
* Minor fixes.
= 2.3.2.5 =
* Addition of Material.
* Funding notification IP check.
* Minor fixes.
= 2.3.2.4 =
* New minimum financing amount.
= 2.3.2.3 =
* New corporate image.
= 2.3.2.2 =
* Minor fixes.
= 2.3.2.1 =
* Minor fixes.
= 2.3.2 =
* Fixed return URLs.
* Minor fixes.
= 2.3.1 =
* Fixed return URLs.
* Fixed order status updates.
= 2.3 =
* Fixed WooCommerce 3.4 compatibility.
* Added new version update notification.
* Updated screenshot.
= 2.2 =
* Added months list field.
= 2.1.1.1 =
* Fixed checkout payment redirection URL.
= 2.1.1 =
* WooCommerce 2.6 compatibility optimization.
= 2.1 =
* Added dynamic calculator for variable products.
= 2.0 =
* WooCommerce 3.0 fully compatibility.
* Added calculator on product and checkout pages and shortcode.
* Updated screenshot.
= 1.0 =
* Initial version.

== Upgrade Notice ==
= 3.0 =
* Added support for checkout block.

== Translations ==
* *English*: by [**Banco Cetelem S.A.U.**](https://www.cetelem.es/banco/) (default language).
* *Español*: por [**Banco Cetelem S.A.U.**](https://www.cetelem.es/banco/).
