# Connect a provider

> Connect your own account with a payment provider, set its priority and fees, paste its webhook URL, then pause or disconnect it.

A connection links your own account with a payment provider to Wajub. With two connections or
more, a payment one of them declines can be taken over by another.

The owner, an Administrator, a Developer or a custom role with **Manage settings** or **Manage
developer settings** connects a provider; **Notify me when available** takes **Manage settings**.
The **Pay as you go** plan allows 2 providers, **Growth** 6, **Scale** and **Enterprise** have no
limit, and the Wajub rail does not count. Connections only exist in
[Live](https://docs.wajub.com/dashboard#sandbox-and-live). The [security code](https://docs.wajub.com/dashboard#the-security-code) is only
asked for to regenerate the webhook URL or disconnect a provider.

## The steps

1. **Open the catalogue**

   In **Live**, open **Orchestration**, the **Providers** tab, then **Add provider**. The search
   and the **Country**, **Region**, **Type** and **Status** filters narrow the catalogue. If your
   plan is full, the page shows **Provider limit reached** with **Upgrade plan**.

2. **Choose the provider**

   Click **Connect** under its card. A provider that is coming soon offers **Notify me when
   available** instead. The Wajub rail is not in the catalogue:
   [Apply for the Wajub rail](https://docs.wajub.com/dashboard/orchestration/rail).

3. **Enter the credentials**

   Under **API credentials**, fill in the fields this provider asks for, as your dashboard with
   that provider shows them. Some providers have credentials per country: fill in at least one
   country. Click **Continue**.

4. **Choose the channels**

   Under **Payment channels**, tick the channels to hand to this provider, or **Select all**; only
   the channels of the countries whose credentials you entered are offered. At least one channel
   is needed.

5. **Set the routing**

   Under **Routing settings**, the highest **Priority** is tried first, and the &#x2A;*Weight (%)**
   splits traffic between providers of the same priority. Turn off **Activate it as soon as it is
   connected** to connect it paused. &#x2A;*Fees (for least-cost routing)** is optional: your
   &#x2A;*Variable rate (%)**, your **Fixed fee**, the accepted **Currencies** (empty for all) and
   **Per-channel overrides**.

   ![The Routing step of connecting a provider: the Routing settings section with the Priority and Weight (%) fields and the Activate it as soon as it is connected switch turned on, then the Fees (for least-cost routing) section.](https://docs.wajub.com/dashboard/en/light/orchestration-provider-setup.webp)

   *A routing rule or a channel policy comes before the priority.*

6. **Connect the provider**

   The **Review** step sums up your choices and tries your credentials under **Connection
   check**. If the check fails, the provider will be connected paused, unless you tick **Activate
   it anyway**. Click **Connect provider**: its page opens with the message &#x2A;*Provider enabled
   successfully.**

If you leave partway through, the page shows **We restored your unfinished setup** when you come
back in the same tab within 24 hours: your choices come back, the credentials do not. **Start
fresh** clears everything.

## After connecting

On the provider's page, the **Settings** tab shows the **Webhook endpoint**: copy it with **Copy
the webhook URL** and paste it into your dashboard with the provider, so that Wajub learns the
outcome of your payments. **Test connection**, under **Diagnostics**, checks your credentials.

![The Settings tab of Campay: the Webhook endpoint card with its URL, the copy button and the Regenerate URL button, then the Diagnostics card with the Test connection button.](https://docs.wajub.com/dashboard/en/light/orchestration-provider-settings.webp)

*Without this URL at the provider, Wajub does not learn the outcome of payments.*

The same tab sets the routing, fees, channels and currencies, saved with **Save changes**. The
switch under **Status** pauses the provider straight away, without deleting anything. The
**Credentials** tab replaces a credential with **Update credentials**; saved secrets are never
shown.

**Regenerate URL** asks for the security code. The old URL stops working at once: paste the new
one at the provider. If the provider rejects your credentials, the list shows **Connection
refused** and its page offers **Fix the connection**:
[When a connection goes bad](https://docs.wajub.com/orchestration/providers#when-a-connection-goes-bad).

## Disconnecting a provider

Under **Danger zone**, click **Disconnect provider**, type its name, then the security code. The
connection, its credentials and its settings are deleted, along with the routing rules that send
payments to it; those where it was the fallback provider lose it. The message "Campay
disconnected." confirms it. To connect it again, you will have to enter its credentials again. The
Wajub rail is not disconnected here.
