=== CoffeeCode - Checkout Stripe Pix for WooCommerce ===
Contributors: coffeecodetech, alexandresa
Tags: checkout, stripe, woocommerce, pix, payments
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.2.5
License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html

CoffeeCode - Checkout Stripe Pix for WooCommerce

== Description ==

CoffeeCode - Checkout Stripe Pix for WooCommerce. Built with development best practices, providing more agility, security and sales conversion.

Support [Coffee Code](https://coffee-code.com/#contato).

= Requirements =

- PHP version 7.4 or higher.
- WooCommerce version 7.0.x or higher.

= Payment Methods =

- PIX.

= Features =

- Payment with Pix.
- Dollar conversion via API (daily exchange rate).
- Manual dollar conversion (administration).
- Extra fees (optional):
	- Fixed fee.
	- IOF (Tax on Financial Operations).

== Screenshots ==

1. Checkout - PIX option available in the shopping cart/checkout (screenshot-1.png)
2. Payment screen / QR Code displayed after payment creation (screenshot-2.png)
3. Plugin settings page in WooCommerce > Settings > Payments (screenshot-3.png)
4. Plugin settings page in WooCommerce > Settings > Payments (screenshot-4.png)

== Changelog ==

= 1.2.5 - 07/10/2026 =
- Feat: Pix checkout redesign — official Pix logo and uppercase "PIX" label.
- Feat: Quote title now supports the {iof} token (renders the configured IOF rate dynamically) and line breaks (multi-line textarea).
- Fix: The Stripe account validation now runs only when the restricted key or the environment changes, instead of on every settings save.

= 1.2.4 - 07/07/2026 =
- Feat: Stripe account validation on the settings screen — a "Revalidate Stripe account" button and an admin notice that check whether the API key is valid and whether Pix is actually enabled on the account. Pix status is read from the Stripe Payment Method Configurations (what the Dashboard "Payment methods" page reflects) instead of the account capabilities, which do not expose Dashboard-enabled methods.

= 1.2.2 - 07/03/2026 =
- Update: Bump Stripe API version to 2025-04-30.basil.

= 1.2.1 - 07/03/2026 =
- Fix: Send the Pix CPF/CNPJ as `billing_details.tax_id`, resolving the Stripe error "Received unknown parameter: pix[tax_id]".
- Update: Bump Stripe API version to 2025-04-30.basil (required for the tax_id billing details field).

= 1.2 - 11/17/2025 =
- Feat: Woocommerce Block compatibility.

= 1.1.2 - 09/22/2025 =
- Doc: Update description.

= 1.1.1 - 09/22/2025 =
- Feat: Initial release.

== Installation ==

1. Upload this plugin to your WordPress and activate it;
2. Go to the side menu "WooCommerce > Settings > Payments";
3. Add the Stripe Secret Key.
4. Add Title, Description, Checkout Title, Dollar conversion (optional), Fee settings.

== External services ==

This plugin connects to two external services to operate:

1. **Stripe API**: The plugin uses the official Stripe API to process Pix payments. This is essential for the plugin to create and manage transactions, and for secure communication between your store and Stripe. No sensitive user data (such as credit card numbers) is sent, as Pix is a QR Code-based payment method. For more information, see [Stripe Privacy Policy](https://stripe.com/privacy) and [Terms of Service](https://stripe.com/legal/end-user).

2. **Central Bank of Brazil (BCB) API**: The plugin connects to the public API of the Central Bank of Brazil (OLINDA) to get the daily dollar exchange rate. This information is used to convert foreign currency values to Brazilian Reais and ensure that payments are processed with the correct exchange rate. No user data is sent to this API. For more information, see [BCB Open Data Catalog](https://www.bcb.gov.br/acessoinformacao/dadosabertos-sgs-api).
