# Firekassa

{% hint style="danger" %} <mark style="color:red;">Before setting up automatic payouts, please read the</mark> [<mark style="color:blue;">risk warning</mark>](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/risk-warning)<mark style="color:blue;">!</mark>
{% endhint %}

{% 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 %}

{% hint style="danger" %}
The module only works with banks (payouts to cards) - currently, there is no support for payouts to Qiwi, YuMoney, or via phone number.
{% endhint %}

## Merchant Account Settings

Register on the [Vanilapay](https://web.vanilapay.com/) website (for RUB transactions) or on the [Gamepay](https://web.gampay.cc/) website (for UAH transactions).

Log into your account, go to the "**Sites**" section -> "**List of Sites**" and add a new site.

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

Fill in the required fields, except for "**Notification URL**" and "**Payout Notification URL**," then click "**Add**."

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

In the window that opens, go to the "**API**" tab.

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

Update the **API Bearer Token** and **API Sign Token** by clicking **"Edit"** on each line one by one.

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

Copy the keys and save them in a text file.

## **Module Settings**

In the admin panel, create a new merchant in the "**Automatic Payouts**" -> "**Add Automatic Payout**" section.

Select Firekassa from the dropdown menu in the "**Module**" field, provide 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-7459a0f7d8d17bc37e41d9b1a07a909ef600e1f0%2Fimage%20(746)_eng.png?alt=media" alt=""><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-46b2cd382ce20a4d6033673ded2d2996298f754b%2Fimage%20(1429)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

**API URL** — specify the URL of the service you will be working with:\
• **<https://admin.gampay.cc>** — for UAH transactions (alternative URL - \*\*<https://web.gampay.cc**)\\>
• **<https://admin.vanilapay.com>** — for RUB transactions (alternative URL - **<https://web.vanilapay.com>**)

**API Key** — **API Bearer Token** from your Firekassa account

**Secret Key** — **API Sign Token** from your Firekassa account

## Special Fields

**Type**:

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

* **Type** — select the bank for fund payouts (RUB, UAH)

{% hint style="warning" %}
The list of banks and payment systems for this option is loaded via API from the merchant — if a type is missing, please contact the merchant to have it included.
{% endhint %}

## Continuing the Setup

Next, configure the automatic payout by following the [general setup instructions](https://premium.gitbook.io/main/en/basic-settings/merchants-and-auto-payments/auto-payments/obshie-nastroiki-merchantov-avtovyplat).
