# PayXpert WooCommerce Module

### ⚠️ Important note

This module is **not an update** of the previous version.  
It is a **new standalone version (v2)**.  
Before installing this module, the old version (**v1**) must be **uninstalled and removed**.  

### 📦 Features

- Choice of capture mode (automatic or manual)  
- Email notification before authorization expiration  
- Payment display modes: redirection or iFrame (seamless)  
- PayByLink option  
- Instalment payments  
- Customization of payment methods  
- Customizable notification system:
  - Enable/disable
  - Notification email address
  - Notification language

### 🔧 Installation

#### Method 1: From the WordPress back office

- Go to **Plugins > Add New**  
- Click **Upload Plugin**  
- Select or drag & drop the module ZIP file  
- Click **Install Now** then **Activate**

#### Method 2: Manually

- Unzip the module archive  
- Copy the module folder into `/wp-content/plugins/`  
- Then go to **Plugins > Installed Plugins**, search for "PayXpert" and click **Activate**

### 🔁 Module Update

1. (Optional) Deactivate and remove the old version via **Plugins > Installed Plugins**  
   > 🛈 If you want to keep the configuration, do not delete the plugin data
2. Install the new version:
   - Either by uploading the new ZIP via the plugin manager  
   - Or by manually replacing the folder in `/wp-content/plugins/`, then activate the plugin

### 🔧 Configuration

After activation, go to:

**WooCommerce > Settings > Payments > PayXpert**, then enter:

- API Public Key  
- API Private Key  

If your keys are valid, you will gain access to the module’s advanced settings.

### 🛠 Dependencies

- WooCommerce >= 7.6.0  
- PHP >= 7.4  
- A valid PayXpert account

### 📜 License

This module is distributed under the MIT license. See the [LICENSE](./LICENSE) file for more information.

### ✉️ Support

A contact form is available on the module configuration page.  
If you encounter any installation issues, please contact **assistance@payxpert.com**.
