# Odoo

Empower your Odoo online store with the PayLater Odoo 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:** [Odoo v3.1 · latest](https://docs.paylaterapp.com/downloads/payment_paylater-v3.1.zip) ([release notes](https://docs.paylaterapp.com/release-notes.html#odoo-3-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.

## Installation

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

### Before you begin

Ensure you have an Odoo website up and running, with the **eCommerce** app installed.

### Compatibility

| Component | Supported |
| --- | --- |
| Odoo | **Odoo 18 only**. The module does not install on Odoo 17, and Odoo 19 is not supported yet. |
| Required modules | `payment` and `website_sale` |
| Store currency | QAR. Orders in any other currency are refused at checkout with "PayLater only accepts payments in QAR". |
| Install method | Copy into an addons path on self-hosted Odoo or Odoo.sh. Odoo Online (SaaS) cannot install custom modules. |

### Frontend Widgets:

PLP Product List Page

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

PDP Product Detail Page

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

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

Checkout Page

![PayLater payment option on the Odoo checkout page](https://docs.paylaterapp.com/assets/img/plugins/odoo/04.png)

## Install the module

- Extract the zip. Inside it you will find a `payment_paylater` folder.
- Copy the `payment_paylater` folder (not the outer folder from the zip) into one of your Odoo addons paths, for example `/mnt/extra-addons/payment_paylater`. On Odoo.sh, commit it to your project repository instead.
- Restart the Odoo service.
- Turn on **developer mode** (**Settings → Developer Tools → Activate the developer mode**).
- Go to **Apps**, click **Update Apps List**, then remove the "Apps" filter and search for `paylater`.

![Payment Provider: PayLater found in the Odoo Apps list after Update Apps List](https://docs.paylaterapp.com/assets/img/plugins/odoo/05.png)

*Payment Provider: PayLater in the Apps list*

- Click **Activate** (or **Install**) on **Payment Provider: PayLater**.

![The installed Payment Provider: PayLater module page in Odoo Apps](https://docs.paylaterapp.com/assets/img/plugins/odoo/06.png)

### Upgrading

Replace the `payment_paylater` folder in your addons path with the one from the new zip and restart Odoo. Then go to **Apps**, remove the "Apps" filter, search for `paylater`, open the **⋮** menu on the PayLater card and click **Upgrade**. Your settings are kept.

## Configurations

- Navigate to **Website → Configuration → Payment Providers** (under **eCommerce**) and open **PayLater**.

![Odoo Website Configuration Payment Provider screen](https://docs.paylaterapp.com/assets/img/plugins/odoo/07.png)

- Fill in the PayLater fields on the **Credentials** tab:

| Field | What to enter |
| --- | --- |
| Environment | **UAT (Testing)** with the [test credentials](https://docs.paylaterapp.com/test-environment.html), or **Live (Production)** with your live credentials. |
| Client ID | Your OAuth client ID from PayLater. |
| Client Secret | Your OAuth client secret from PayLater. |
| Outlet ID | Your outlet ID from PayLater. |
| Webhook Secret | Provided by PayLater after they register your webhook URL (see below). |
| Minimum Order Amount | Orders below this amount do not see PayLater at checkout. Default 300. |

- Set the provider **State** to **Enabled** (or **Test Mode**) and publish it.
- Your webhook URL is `https://<your-store>/payment/paylater/callback`. Send it to the PayLater team; they register it and give you the Webhook Secret.

![PayLater payment provider settings with Client ID, Client Secret and Outlet ID fields](https://docs.paylaterapp.com/assets/img/plugins/odoo/08.png)

![PayLater payment provider configuration details in Odoo](https://docs.paylaterapp.com/assets/img/plugins/odoo/09.png)

![PayLater payment provider enabled in Odoo](https://docs.paylaterapp.com/assets/img/plugins/odoo/10.png)

- For widget settings, navigate to **Settings → PayLater**. The widgets are **off by default**: tick **Product List Page (Shop)** and **Product Detail Page** to show them, and set the minimum price, heading, sub heading and terms text.

![PayLater widget settings under Odoo Settings](https://docs.paylaterapp.com/assets/img/plugins/odoo/11.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).
