=== Rede Itaú for WooCommerce — Payment PIX, Credit Card and Debit ===

Contributors: linknacional  
Donate link: https://www.linknacional.com/wordpress/plugins/  
Tags: rede, PIX, cartao credito, itau, pagamento  
Requires at least: 5.0  
Tested up to: 6.9  
Stable tag: 5.4.1
Requires PHP: 8.0  
License: GPLv3 or later  
License URI: http://www.gnu.org/licenses/gpl-3.0.txt

Payment Gateway for Rede Itaú for WooCommerce - PIX, Credit Card and Debit Cards.

== Transform Your WooCommerce Store with Seamless Payments with PIX and Debit and credit card ==

[WordPress](https://www.linknacional.com.br/wordpress/)  Integration [Rede for WooCommerce plugin](https://www.linknacional.com.br/wordpress/woocommerce/rede/) is the ultimate solution for enabling secure and efficient payment options in your online store with [Rede](https://www.userede.com.br/) and [Maxipago](https://www.userede.com.br/n/gateway-de-pagamento-rede). With support for credit cards, debit cards, and PIX payments, this plugin empowers your business to offer a seamless checkout experience. Whether you want to enable installment payments, tokenized card storage for returning customers, or 3DS authentication, this plugin has you covered.

### Why Choose Integration Rede Itaú for WooCommerce — Payment PIX, Credit Card and Debit?

- Multiple Payment Options: Accept payments via credit cards, debit cards, and PIX.
- Installments: Offer flexible installment plans to your customers.
- Secure Transactions: Includes 3DS authentication and advanced fraud prevention.
- Tokenization: Save card details securely for returning customers.
- Easy Integration: Works seamlessly with WooCommerce and WordPress.
- Customizable: Configure payment settings to match your business needs.
- Sandbox Mode: Test transactions in a secure environment before going live.

## Features at a Glance

- Credit and Debit Card Payments: Accept payments from major card brands like Visa, Mastercard, Elo, and more.
- PIX Payments: Enable instant bank transfers with PIX.
- Installment Plans: Allow customers to split payments into manageable installments.
- 3DS Authentication: Ensure secure transactions with strong customer authentication.
- Webhooks: Stay updated with real-time payment notifications.
- Refunds and Captures: Manage refunds and payment captures directly from your WooCommerce dashboard.
- Detailed Logs: Debug and troubleshoot with comprehensive logging.

[youtube https://www.youtube.com/watch?v=g8IA3QUiV8o]

** Recommended Plugins **
* [Link Invoice Payment for WooCommerce](https://wordpress.org/plugins/invoice-payment-for-woocommerce/) - Integrate custom payment methods and offer invoice-based payments in your WooCommerce store.
* [Shipping Calculator for Brazil](https://wordpress.org/plugins/woo-better-shipping-calculator-for-brazil/) - Provide accurate freight calculation for Brazilian addresses directly in your WooCommerce checkout.


## Installation

### 1. Using the WordPress Admin Dashboard (Recommended)
1. Navigate to Plugins → Add New.
2. Click Upload Plugin and select the `integration-rede-for-woocommerce-master.zip` file.
3. Click Install Now and then Activate.
4. Go to [WooCommerce plugin](https://www.linknacional.com.br/wordpress/woocommerce/)  → Settings → Payments to configure the plugin.

### 2. Manual Installation via FTP
1. Extract the plugin ZIP file.
2. Upload the extracted folder to `wp-content/plugins/`.
3. Activate the plugin in the WordPress admin dashboard under Plugins.

### 3. WP-CLI Installation
1. Upload the plugin folder to `wp-content/plugins/`.
2. Run:
    ```bash
    wp plugin activate integration-rede-for-woocommerce
    ```

---

## Configuration

Go to WooCommerce → Settings → Payments.  
Select Rede or Maxipago as your payment gateway and enter the required credentials:

- Rede: PV and Token
- Maxipago: Merchant ID and Merchant Key

Configure additional options like installments, 3DS authentication, and logging. Save your settings.

Note: Do not hardcode credentials in source files. Use the plugin settings or environment-safe methods.

---

## External Libraries

This plugin utilizes the following external libraries/services:

- **Google Pay API**: Integrates Google Pay as a payment method, allowing customers to pay quickly and securely. For more information, visit the [Google Pay API documentation](https://developers.google.com/pay/api/web) and the [Terms of Service](https://payments.developers.google.com/terms/sellertos).
- **Rede API**: Used to process credit, debit, and PIX payments through the Rede gateway. For details, see the [Rede API documentation](https://developer.userede.com.br/e-rede).
- **Maxipago API**: Enables payment processing via the Maxipago gateway for credit and debit cards. More information is available at the [Maxipago API documentation](https://www.maxipago.com/developers/apidocs/maxipago/

The external libraries and APIs used by this plugin (Google Pay, Rede, Maxipago) are provided by trusted and established payment platforms. These services handle sensitive payment data in accordance with industry security standards and privacy regulations. For more information about data handling and privacy, please refer to the documentation of each service or contact plugin support.

## Frequently Asked Questions

Q: What is the license of the plugin?  
A: This plugin is released under the GPLv3 license.

Q: What do I need to use this plugin?  
A: You need to have the WooCommerce plugin installed and activated.

Q: Does the plugin support installment payments?  
A: Yes, you can configure installment options directly in the plugin settings.

Q: Can I test the plugin before going live?  
A: Yes — the plugin includes a Sandbox Mode for testing transactions.

Q: Is 3DS authentication supported?  
A: Yes, the plugin supports 3DS authentication for secure transactions.

Q: Can I process refunds through the plugin?  
A: Yes, refunds can be processed directly from the WooCommerce admin dashboard.

Q: Does the plugin support tokenization?  
A: Yes, the plugin allows you to save card details securely for returning customers.

Q: What payment methods are supported?  
A: Credit cards, debit cards, and PIX payments.

Q: How do I enable logging for debugging?  
A: Enable logging in the plugin settings under the Advanced tab.

Q: Is the plugin compatible with the latest WordPress version?  
A: Yes — tested up to WordPress 6.8.

---

## Changelog

### 5.4.1 - 2026/04/24
- Fix in installments with coupon.
- Change in Order ID field type: Text -> Link.

### 5.4.0 - 2026/03/27
- New spreadsheet export system (PRO).
- Fixed antifraud plugin notification.

### 5.3.3 - 2026/03/16
- Fixed undefined variables $order_currency and $orderId in the Rede credit payment method.

### 5.3.2 - 2026/03/16
- Fixed required field detection on configuration page.

### 5.3.1 - 2026/03/09
- Addition of the network icon.

### 5.3.0 - 2026/02/24
- Addition of the new Google Pay payment method.

### 5.2.0 - 2026/02/12
- NEW Rede transactions table.
- NEW Credentials submission system for support.

### 5.1.7 - 2026/01/30
- Addition of reference field to order notes.

### 5.1.6 - 2026/01/28
- Fixed security vulnerability in logs deletion endpoint.
- Added changelog link to plugin page.

### 5.1.5 - 2026/01/26
- Fix in card brand retrieval in order notes.

### 5.1.4 - 2026/01/19
- Fix order reference variable size.

### 5.1.3 - 2026/01/16
- Fix for errors found by WordPress.

### 5.1.2 - 2025/12/07
- New cron system linked to the PRO version of the plugin.

### 5.1.1 - 2025/12/30
- 3DS launch.

### 5.1.0 - 2025/12/04
- New 3DS request system for Rede debit transactions.

### 5.0.0 - 2025/11/26
- New Rede API request system (V2).
- Improvement in installment labels.
- Cron system for automatic PIX payment verification.
- JavaScript script optimization for better performance.
- Automatic installment reset on cart changes.

### 4.1.9 - 2025/11/25
* Fixed installment display when payment is cash/upfront.

### 4.1.8 - 2025/11/24
* Fixed minimum installment value.

### 4.1.7 - 2025/11/24
* Fix in installment select generation.

### 4.1.6 - 2025/11/24
- Fixed installment select when choosing a new shipping option.
- Fixed minimum installment value calculation.

### 4.1.5 - 2025/11/14
- Fix plugin images.

### 4.1.4 - 2025/11/07
- Adjustment in product installment limit.
- Adjustment in final payment installment calculation.

### 4.1.3 - 2025/11/05
- Fix in tax calculation for installments.

### 4.1.2 - 2025/10/08
- New custom configuration attributes.

### 4.1.1 - 2025/11/04
* Fix installment calculation in shortcode form.

### 4.1.0 - 2025/10/08
- New style for gateway settings.
- More detailed descriptions in the settings.

### 4.0.9 - 2025/10/09
- Fix in icons display.

### 4.0.8 - 2025/09/22
- Fix in tax calculation for installments.

### 4.0.7 - 2025/09/19
- Fix in version release.

### 4.0.6 - 2025/09/15
- Fix in the PIX route.

### 4.0.5 - 2025/09/15
- Fix in the PIX route.

### 4.0.4 - 2025/09/15
- Fix installment values update.
- Fixed payment refunds.
- Fixed the endpoint for the PIX verification route.

### 4.0.3 - 2025/09/12
- Fix refund function.

### 4.0.2 - 2025/09/05
- Update to the sales links.
- Fix in the plugin's textdomain.
- Plugin icon in the gateway settings.

... (previous changelog entries retained) ...

---

## Screenshots

1. Payment methods list  
2. Rede Credit settings page  
3. Rede Credit front inputs page  
4. Maxipago Credit front inputs page  
5. Maxipago Credit summary page  
6. Rede Credit front page (legacy) with installments  
7. Rede Debit settings page  
8. Rede and Maxipago payment list

---

## Upgrade Notice

- 5.1.0 — New Rede API request system (V2).
- New 3DS request system for Rede debit transactions.
- Improvement in installment labels.
- Cron system for automatic PIX payment verification.
- JavaScript script optimization for better performance.
- Automatic installment reset on cart changes.

---

## Support

For any issues or questions, visit our support page or open a ticket on the WordPress plugin repository.

---

Try Integration Rede Itaú for WooCommerce — Payment PIX, Credit Card and Debit Today!  
Enhance your WooCommerce store with a reliable, secure, and feature-rich payment gateway. Start accepting payments with credit cards, debit cards, and PIX today!
