---
description: How to add new Smart router engine.
---

# Adding & Configuring New Smart Router

## [Adding New Smart Router](#adding-new-smart-router)

From the Ottu Dashboard, click on the three dots in the top right corner and select **Administration Panel**. Proceed to the **PGSR** section. Click on the **Add Smart Router** button, and a configuration form will automatically display. The form requires the following parameters to be filled:

### [Smart Router Configurations Form](#smart-router-configurations-form)

*   #### **Is Active:**&#x20;

    Determines whether the Smart Router is active.
*   #### **Name:**&#x20;

    Name of the Smart Router.
*   #### **Code Identifier:**&#x20;

    Defines the identifier for the Smart Router. This identifier replaces pg\_codes in the Checkout API.
*   #### **Strategies:**&#x20;

    Choose one or multiple routing strategies for the transaction. Included:

    * #### **Exclude Unavailable Strategy (**[**M**ulti Selection](#multiple-selection-strategy-inclusive-strategy))**:**
      * **Error Event Threshold:** Count of recent error events triggering a payment method's blacklist.
      * **Blacklist Expiration Mode:** Duration of blacklisting, with options for specific hours or until midnight.
      * **Number of Hours for Expiration:** Duration in hours for which a payment method remains blacklisted if set to specific hours.
    * #### **Transaction Size Strategy (**[**M**ulti Selection](#multiple-selection-strategy-inclusive-strategy))**:**
      * **Minimum Amount:** Specifies the minimum transaction amount acceptable for processing through this PGMID. The amount must be greater than 0, ensuring that the payment method is utilized for transactions within its intended range.
      * **Maximum Amount:** Sets the maximum transaction amount that can be processed through this PGMID, preventing high-value transactions from being processed through unsuitable payment methods.
    * #### **Round Robin (**[**Single Selection**](#single-selection-strategy-exclusive-strategy)**)**
      * It is a method that shares transactions equally across available Payment Gateways. It does this by moving in order, from one gateway to the next, ensuring each one gets a turn.
    * #### **Fallback (**[**Single Selection**](#single-selection-strategy-exclusive-strategy)**)**
      * It is strategy where transactions are automatically sent to a backup Payment Gateway if the first option dosen't work.

#### What are single and multi-selection?

*   #### **Multiple Selection Strategy (Inclusive Strategy)**

    It allows for the selection of multiple merchant identifiers (MIDs) within a single transaction. For instance, the "Transaction Size Strategy" might choose multiple MIDs that support a specific transaction value, such as 100 KWD. This approach broadens the pool of available MIDs for subsequent strategies in the processing pipeline.

{% hint style="info" %}
It's not recommended to place a Multiple Selection Strategy as the last in the routing pipeline, as it may result in multiple MIDs being selected when only one is needed.
{% endhint %}

*   #### **Single Selection Strategy (Exclusive Strategy)**

    It restricts the selection to just one merchant identifier (MID) per transaction. For example, the "Round Robin Strategy" selects a single MID from the available options to forward along the routing pipeline. This strategy is definitive, precisely determining the MID for further processing.

{% hint style="info" %}
Ideally, only one Single Selection Strategy should be used positioned as the last strategy in the routing pipeline to ensure a single MID is selected for processing the payment.
{% endhint %}

*   #### **Plugin:**&#x20;

    Select the supported payment plugin. available options: [Payment Request](../../plugins/payment-request) or [E-Commerce](../../plugins/e-commerce).
*   #### **Logo:**&#x20;

    Upload a logo for use in various customer-facing pages.
*   #### **Router Type:**&#x20;

    Defines the Type of the Smart Router. For instance, when set to `Apple Pay`, the routing will prioritize payment gateways associated with `Apple Pay`.
*   #### **PGMIDs:**&#x20;

    Select one or multiple Merchant Identification Numbers (MIDs) from the populated list to associate with this Smart Router.

<figure><img src="https://content.gitbook.com/content/uvuyQluEi5QMHcp2TcU7/blobs/4wh20eAKfWxqvzCVPA7N/image.png" alt=""><figcaption></figcaption></figure>
