> For the complete documentation index, see [llms.txt](https://premium.gitbook.io/main/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/merchants/payplay.md).

# PayPlay

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

## Merchant Account Settings

{% hint style="warning" %}
To discuss working conditions, please contact a [service representative](https://t.me/am_payplay).

**Disclaimer**: When connecting your website to any service, please assess the potential risks of collaboration on your own.
{% endhint %}

Register for the PayPlay service through a service representative and log in to your merchant account.

## Module Settings

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

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

<figure><img src="/files/g8PfUiMTWxgfHUdX9EZh" alt="" width="359"><figcaption></figcaption></figure>

Fill in the required authorization fields.

<figure><img src="/files/PxP3UX2XIgKSuHLRAuR8" alt="" width="415"><figcaption></figcaption></figure>

**Domain** — leave this field empty.

**API Key** — the API key displayed in your PayPlay account settings.

<figure><img src="/files/Q0qqF5vNaWWZNJ0EWqKY" alt="" width="560"><figcaption></figcaption></figure>

**Slug** — the ID of the payment page, displayed in your PayPlay account.

<figure><img src="/files/LZvEDR8NIS4jV1WAyuSG" alt="" width="500"><figcaption></figcaption></figure>

**WT Token** — token displayed in the PayPlay personal account after specifying the webhook link from the merchant module settings ("**Payment pages**" section).

{% hint style="warning" %}
Please note that for merchants using the "**Payment Link**" method, it is essential to specify the webhook URL for proper payment verification.
{% endhint %}

<figure><img src="/files/vwY77K4VjiczXDUHCABy" alt=""><figcaption><p>Module settings in the Premium Exchanger admin panel</p></figcaption></figure>

<figure><img src="/files/2BSQnma847KNtRoNQBTf" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/dxK3B4tqJhquWo71KmyD" alt=""><figcaption></figcaption></figure>

After saving the webhook, be sure to select the methods to work with it and save the changes.

<figure><img src="/files/p0yrAm1ETA62rYDqON47" alt=""><figcaption></figcaption></figure>

## Special Fields

<figure><img src="/files/zS5kOClIdDtIetGWdu4x" alt=""><figcaption></figcaption></figure>

**Merchant Type** (the selected option is tied to the module copy and cannot be changed later for this copy):

* **Payment Link** — returns a payment link in the request; this option works in conjunction with the payment method selected below.
* **Requisites** — returns the card number or phone number for transferring funds in the request using the shortcode `[to_account]`.

<figure><img src="/files/r0ap7N30cErqPOdCp51h" alt="" width="510"><figcaption></figcaption></figure>

**Payment Method** — select the appropriate method for receiving funds from the client.

**Custom Fields** — use the [custom currency field](https://premium.gitbook.io/main/en/basic-settings/currencies-and-exchange-directions/additional-fields#additional-fields-for-currency) from the currency "**I Give**" in the exchange direction to select requisites.

**Payment Method** — manually select the currency for requisites selection.

## Continuing the Setup

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