> 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/auto-payments/luckypay.md).

# Luckypay

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

## Merchant Account Settings <a href="#nastroiki-v-lichnom-kabinete-merchanta" id="nastroiki-v-lichnom-kabinete-merchanta"></a>

{% hint style="warning" %}
To discuss terms and connection, please contact a [service representative](https://t.me/luckypay_accounting).

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

Log in to your [Merchant Account](https://merchant.luckypay.io/). In the "**API**" section, copy the API key for authorization in the automatic payout module.

<figure><img src="/files/bnWPjxJBDfW54u4TDP3f" alt="" width="563"><figcaption></figcaption></figure>

Make sure to specify the URL from the automatic payout module settings (Callback URL) in the "**Order Status to Sell**" field.

<figure><img src="/files/dJzCm12sj69oErj6iQ8l" alt="" width="563"><figcaption></figcaption></figure>

<figure><img src="/files/Mof8ajYv1J6QzPbD4y9d" alt="" width="563"><figcaption></figcaption></figure>

## Module Settings <a href="#nastroiki-modulya" id="nastroiki-modulya"></a>

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

Select Luckypay from the dropdown list in the "**Module**" field, provide a name for the module, and click "**Save**."

Fill in the required authorization fields.

<figure><img src="/files/SMvAAogwz2Epprt2NmHL" alt="" width="435"><figcaption></figcaption></figure>

**API Key** — the key you previously copied from your Luckypay account.

## Special Fields

**Payment Method** — select the appropriate method for making payouts.

## Continuing the Setup

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