> For the complete documentation index, see [llms.txt](https://manual.boxexchanger.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.boxexchanger.net/obmen/merchant-i-api/betpay/merchant-betpay.md).

# Мерчант BetPay

Инструкция по настройке модуля приема BetPay

## Установка мерчанта

Используя параметры ниже, установите мерчант через функционал "**Install plugin**" по инструкции [Install plugin](/dopolnitelnye-sistemy/install-plugin.md).

<details>

<summary>Параметры для Install Plugin</summary>

**Plugin type**: <mark style="color:orange;">**`Merchant module`**</mark>

**Plugin URL**: <mark style="color:orange;">**`@boxexchanger-plugins/merchant-betpay-money`**</mark>

**Directory path**: <mark style="color:orange;">**`betpay-money`**</mark>

**Auth: (Deploy token)**: оставляем пустым

**Package tag**: <mark style="color:orange;">**`latest`**</mark>

</details>

## Конфигурация

1. Для начала [**зарегистрируйтесь**](#user-content-fn-1)[^1] на платформе BetPay по [ссылке ](https://web.bpay.money/Identity/Account/Register)и [**войдите в аккаунт**](#user-content-fn-2)[^2]**.**&#x20;
2. Перейдите на страницу "**Settings**" и нажмите "[**Generate new secret key**](#user-content-fn-3)[^3]" -> сохраните [**значения**](#user-content-fn-4)[^4] "**MerchantID**" и "**Secret Key**".&#x20;

{% hint style="info" %}
Обратите внимание, что значение "**Secret key**" также понадобится для настройки модуля выплаты и парсера BetPay. Сохраните секретный ключ в надежном месте, пока модули BetPay не будут настроены. **В противном случае вам придется пересоздавать "Secret Key" так как после перезагрузки страницы ключ будет скрыт в целях безопасности.**

Парсер [BetPay.Money](/obmen/parser-kursov/betpay.money.md)

[Выплаты BetPay.money](/obmen/merchant-i-api/betpay/vyplaty-betpay.money.md)
{% endhint %}

3. В админ панели скрипта BoxExchanger перейдите на страницу "Мерчант и API" - раздел "**MERCHANT SYSTEM**" - [**настройки** ](#user-content-fn-5)[^5]модуля приема "**BetPay Money**".&#x20;
4. На странице настроек модуля вставьте значение "**MerchantID",** из шага 2, поле "**Merchant id**" - нажмите "[**Save**](#user-content-fn-6)[^6]" -> вставьте значение "**Secret Key**", из шага 2, в поле "**Merchant secret**" - нажмите "[**Save**](#user-content-fn-7)[^7]".&#x20;
5. [**Скопируйте**](#user-content-fn-8)[^8] WEBHOOK URL.&#x20;
6. Вернитесь в панель управления BetPay - страница "Settings" - вставьте, скопированный на шаге 5, **WEBHOOK URL** в поле "**PayIn Webhook Url**" - нажмите "[**Save**](#user-content-fn-9)[^9]".
7. В админ панели скрипта BoxExchanger на странице настроек мерчанта BetPay, скопируйте IP из раздела "**BETPAY.MONEY IPS**" -> добавьте IP в белый список Cloudflare. Инструкция: [IP в белый список CloudFlare](/dlya-razrabotchikov/nastroika-firewall/ip-v-belyi-spisok-cloudflare.md)
8. Мерчант BetPay настроен.&#x20;

[^1]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FwwIoxyHwjkiXbo5aNxXa%2Fimage.png?alt=media\&token=815fb055-3963-4532-8828-4cd91cade111)

[^2]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FtR8v6DE7XpCJ9h8RgzZR%2Fimage.png?alt=media\&token=ac6c699a-2bcd-4e2e-add2-b9ab408c8516)

[^3]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FpgDxiCU1rF0diZr0lEoQ%2Fimage.png?alt=media\&token=442f7565-8f2d-4ad8-874b-58f127a95fdc)

[^4]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FqsqG7zbwTXFHrltSjn6s%2Fimage.png?alt=media\&token=65adf4f4-6235-4651-96f4-38e11e5833d1)

[^5]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FmlQlpHIg0pbq3sg7scOh%2Fimage.png?alt=media\&token=96041a12-f9ec-4839-9c8a-b30c7dbbd670)

[^6]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FIzBd26C7M6gjv5pkyg8j%2Fimage.png?alt=media\&token=d40c6f6f-b3c4-4203-9362-6b326791ce65)

[^7]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FAARQMpZipAaihItaIqU4%2Fimage.png?alt=media\&token=2089d039-e3c8-48f1-9b72-b0bfc798fed4)

[^8]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2Fke2ZqkE0pW8dcrutqEjS%2Fimage.png?alt=media\&token=9940321d-7b0c-4bc3-a035-a11ef8acb8bb)

[^9]: ![](https://3272217808-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKMtUdLxlDooDfKq13Is6%2Fuploads%2FqGHDZlYNXThgZTU36DYM%2Fimage.png?alt=media\&token=6ef2ff5a-7d3f-4a53-aa8d-5ba8bfbd6db6)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://manual.boxexchanger.net/obmen/merchant-i-api/betpay/merchant-betpay.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
