# XPay

{% hint style="info" %}
If you need to update the module on the server, please refer to the [instructions](https://premium.gitbook.io/main/en/en/basic-settings/faq/updating-script-files-on-the-server/how-to-update-files-on-the-server#merchant-and-auto-payout-modules).
{% endhint %}

## Settings in the Merchant's Personal Account

{% hint style="warning" %}
To connect to the service, please contact the [manager](https://t.me/premiumexchanger_business) — they will create a chat with you and representatives from the payment service to discuss connection terms, rates, and other questions.
{% endhint %}

Register and verify your account with Xpay. Go to the "**Merchants**" section and click the "**Create Merchant**" button.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-27b72d48523be4cb14648623bbee0450ef47255f%2Fimage%20(1826)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

Save the generated key in a text file and click the "**Done**" button.

## Module Settings

In the admin panel, create a new merchant in the "**Merchants**" -> "**Add Merchant**" section.

Select XPayPro from the dropdown menu in the "**Module**" field, enter a name for the module, and click "**Save**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-6a779152369924ecf82a29550b44d9aeba7fe0c6%2Fimage%20(1822)_eng.png?alt=media" alt="" width="563"><figcaption></figcaption></figure>

Fill in the required authorization fields.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-54f221bdf98cc70a8c2e2b4fad8bef0c2cf4874f%2Fimage%20(1823)_eng.png?alt=media" alt="" width="421"><figcaption></figcaption></figure>

**API Key** — the key generated in your XPay personal account.

**Host** — select the domain for working with the merchant.

## Special Fields

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-eb33d837a821f6b98498332bc05e6bdb382fa185%2Fimage%20(1825)_eng.png?alt=media" alt="" width="278"><figcaption></figcaption></figure>

**Payment Method** — choose the type of payment for the customer: SBP or bank card.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-589d17b9b76d73e97d3272803206a79b957090df%2Fimage%20(1824)_eng.png?alt=media" alt="" width="327"><figcaption></figcaption></figure>

**Bank** — select the bank whose details will be provided to customers for payment requests.

{% hint style="warning" %}
For **each payment method used**, you need to create a separate copy of the merchant module, selecting the corresponding method, and then connect this copy in the "**Merchants and Payouts**" tab in the exchange direction settings, where the currency in "**I Give**" will be the appropriate currency.
{% endhint %}

## Continuing the Setup

Next, proceed to configure the merchant by following the [general setup instructions](https://premium.gitbook.io/main/en/en/basic-settings/merchants-and-auto-payments/merchants/general-merchant-settings).
