# Leanpay for WooCommerce

**Contributors:** Leanpay  
**Tags:** woocommerce, payment, payment-gateway, installment, leanpay
**Requires at least:** 5.0  
**Tested up to:** 6.9  
**Requires PHP:** 7.4  
**WC requires at least:** 5.0  
**WC tested up to:** 10.4.2  
**Stable tag:** 6.0.0  
**License:** GPLv2 or later  
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html

Enable easy monthly installments with Leanpay. Integrate Leanpay payment gateway for flexible payment options in your WooCommerce store.

## Description

Leanpay for WooCommerce lets customers pay in monthly installments, integrating smoothly with WooCommerce for easy payments.

### Key Features

* **Easy Installment Payments** - Customers can split their purchases into affordable monthly payments
* **Multiple Market Support** - Available for Slovenia, Croatia, Romania, and Hungary
* **Flexible Display Options** - Show installment information on catalog pages, product pages, and checkout
* **Customizable Design** - Customize colors, sizes, and styling to match your store's branding
* **Real-time Pricing** - Automatically calculates and displays installment amounts based on current pricing plans
* **Sandbox Mode** - Test the integration safely with sandbox mode before going live
* **WooCommerce Blocks Support** - Fully compatible with the new WooCommerce Blocks checkout
* **Webhook Integration** - Automatic order status updates via webhooks
* **Multi-currency Support** - Works with different currencies including EUR, HRK, RON, and HUF
* **Admin Dashboard** - Easy-to-use admin interface for managing settings and viewing order status

### How It Works

1. Install and activate the plugin
2. Configure your API credentials from your Leanpay merchant account
3. Customize the display settings and appearance
4. Customers will see installment payment options throughout your store
5. At checkout, customers can select Leanpay as their payment method
6. Orders are automatically processed and status is updated via webhooks

### Display Options

The plugin can display installment information in three locations:
- **Catalog Pages**: Show lowest monthly installment price next to products
- **Product Pages**: Interactive calculator showing all available installment plans
- **Checkout Page**: Display installment information in the payment method selection area

### Requirements

* WordPress 5.0 or higher
* WooCommerce 5.0 or higher
* PHP 7.4 or higher
* Valid Leanpay merchant account

## Installation

1. Upload the plugin files to `/wp-content/plugins/wc-leanpay` directory, or install the plugin through the WordPress plugins screen
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Navigate to WooCommerce > Settings > Payments
4. Find "Leanpay - instalment purchases" and click "Set up"
5. Enter your API credentials from your Leanpay merchant account
6. Configure the settings according to your preferences
7. Save changes and start accepting installment payments!

## Frequently Asked Questions

### Where can I get my API credentials?

API credentials are provided by Leanpay when you register as a merchant. Contact Leanpay support or check your merchant dashboard.

### Can I test the integration before going live?

Yes, the plugin includes a sandbox mode that allows you to test the integration safely. Enable it in the plugin settings.

### Does this work with WooCommerce Blocks?

Yes, the plugin is fully compatible with WooCommerce Blocks checkout.

### Which countries are supported?

Currently, the plugin supports Slovenia, Croatia, Romania, and Hungary.

### Can I customize the appearance?

Yes, you can customize colors, font sizes, and display options through the plugin settings in your WordPress admin.

## Screenshots

1. Plugin settings page
2. Installment display on product page
3. Checkout with Leanpay payment option
4. Admin order details with transaction status

## Changelog

See [CHANGELOG.md](CHANGELOG.md) for a complete list of changes.

## Support

For support, feature requests, or bug reports, please visit:
* Plugin support: https://www.leanpay.si/
* Documentation: Contact Leanpay support

## Credits

Developed by Leanpay team for the WooCommerce community.

