# WooCommerce

Empower your WordPress online store with the PayLater WooCommerce Plugin, a cutting-edge solution designed to enhance the purchasing journey for both merchants and customers. This seamlessly integrated plugin opens up a world of possibilities, allowing merchants to offer a convenient and flexible PayLater option at checkout.

## Download plugin

**Download:** [WordPress / WooCommerce v4.4.1 · latest](https://docs.paylaterapp.com/downloads/paylater_v4.4.1.zip) ([release notes](https://docs.paylaterapp.com/release-notes.html#woocommerce-4-4-1))

Always install the latest version. Older releases are deprecated — see the [release notes](https://docs.paylaterapp.com/release-notes.html) for the full version history.

> **Note: PHP requirement**
>
> The PayLater plugin needs **PHP 8.2 or newer**. Keep PHP up to date with the latest security release for your version.

## Installation

Paylater empowers merchants to offer the popular Buy Now, Pay Later (BNPL) payment option to their customers on their WooCommerce websites. This document guides you through the installation and setup process of the PayLater plugin.

### Before you begin

Ensure you have a WordPress website with the WooCommerce plugin installed and activated.

### Compatibility

| Component | Tested with |
| --- | --- |
| WordPress | 6.6 |
| WooCommerce | 9.3 |
| Checkout | Classic (shortcode) and block-based checkout |
| PHP | 8.2 or newer (tested on 8.3) |
| Store currency | QAR |

### Frontend Widgets:

PLP Product List Page

![PayLater widget on the WooCommerce product list page](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/01.png)

PDP Product Detail Page

![PayLater widget on the WooCommerce product detail page](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/02.png)

![PayLater instalment breakdown on the WooCommerce product detail page](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/03.png)

## Method 1: Automatic Installation

Automatic installation is the easiest option as WordPress handles the file transfers itself and you don’t need to leave your web browser

- Log in to your WordPress admin dashboard
- Navigate to **Plugins -> Add New Plugin**
- Click on Upload Plugin
- Select the downloaded PayLater plugin zip file.
- Click Install Now and then Activate

**Upgrading:** upload the new zip the same way. When WordPress says the plugin is already installed, click **Replace current with uploaded**. Your settings are kept.

![Log in to your WordPress admin dashboard and navigate to Plugins](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/04.png)

*Log in to your WordPress admin dashboard & Navigate to Plugins*

![Click on Upload Plugin](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/05.png)

*Click on Upload Plugin*

![Select the downloaded PayLater plugin zip file](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/06.png)

*Select the downloaded PayLater plugin zip file.*

![Click Install Now and then Activate](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/07.png)

*Click Install Now and then Activate*

## Method 2: Manual Installation

The manual installation method involves downloading our plugin and uploading it to your web server via your favourite FTP application. Extract the zip and upload the `paylater` folder to `wp-content/plugins/`. The WordPress documentation covers this in [Manage Plugins](https://wordpress.org/documentation/article/manage-plugins/#Manual_Plugin_Installation)

![PayLater Payment Gateway in the WordPress plugin list after uploading via FTP](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/08.png)

*After uploading via FTP, PayLater appears in the Plugins list. Click Activate.*

## Configurations

- Once activated, navigate to **WooCommerce -> Settings -> Payments**
- Locate PayLater in the list of available payment gateways and click on the Manage button.

![PayLater in the WooCommerce payments list with the Manage button](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/09.png)

- The PayLater settings are split across three tabs at the top of the page: **General**, **API Configuration** and **Widget Settings**. WooCommerce keeps separate credentials for testing and production, and **Test Mode** decides which set is used.

| Tab | Setting | What to enter |
| --- | --- | --- |
| General | Enable PayLater, Title, Description | Turn the payment method on and set the name and description shown at checkout. |
| General | Order Minimum | Smallest cart total that shows PayLater. Cannot be lower than 300 QAR. |
| API Configuration | Test Mode | On (default): uses the Test credentials against UAT. Off: uses the Live credentials against production. |
| API Configuration | Test Client ID / Test Client Secret | The UAT credentials, for example the ones on the [Test environment](https://docs.paylaterapp.com/test-environment.html) page. |
| API Configuration | Live Client ID / Live Client Secret | Your production credentials from PayLater. |
| API Configuration | Outlet ID | Your outlet ID from PayLater. |
| API Configuration | Payment Link Expiry (minutes) | How long the shopper has to finish paying before the link expires. Default 10. |
| API Configuration | Test Webhook Secret / Live Webhook Secret | Provided by PayLater for each environment after they register your webhook URL. The URL is shown in the **Webhook** section of this tab. |
| Widget Settings | Enable PDP Widget, Enable PLP Widget and their messages | Turn the product detail (PDP) and product list (PLP) widgets on or off and set their main and sub messages. |

![PayLater settings page with Client ID, Client Secret and Outlet ID fields](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/10.png)

![PayLater configuration fields in the WooCommerce admin](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/11.png)

![PayLater payment gateway configuration saved in WooCommerce](https://docs.paylaterapp.com/assets/img/plugins/woocommerce/12.png)

- Click Save Changes to complete the configuration

## Testing

To ensure smooth functionality, it's recommended to test the PayLater payment option:

- Add a product to your cart and proceed to checkout
- During checkout, select PayLater as the payment method.
- You will be redirected to the secure PayLater platform to complete the BNPL payment process.
- Use test shopper account provided in the [Test environment](https://docs.paylaterapp.com/test-environment.html)
- Please use 300 QAR as the amount to test

> **Note: Credentials**
>
> Get your `Client ID`, `Client Secret`, and `Outlet ID` from your PayLater account dashboard. For your `Webhook Secret`, share your webhook endpoint with the PayLater team. For sandbox values and test shoppers, see the [Test environment](https://docs.paylaterapp.com/test-environment.html).
