# InSales

**Instruction on Integration of Payment via Unitpay System**

1. Go to the Settings page in the InSales admin panel.
2. Select Payment from the menu.
3. On the Payment Method page, create a new payment method by selecting External Payment Method in the drop-down list and clicking Add.
4. In the Store ID field, enter the PUBLIC KEY of your project in Unitpay.
5. In the Password field, enter the SECRET KEY of your project in Unitpay.
6. In the URL field of the external service, enter <https://unitpay.money/insales>.
7. Important Note! Leave the Send detailed order information field empty.
8. Save the page.
9. Go to the project management panel in Unitpay.
10. In the URL field of the Payment Handler section, enter <https://unitpay.money/insales/handler>.
11. Save the project settings.

**Integration is complete.**

{% hint style="warning" %}
Do not use the url from the "URL to go to on successful payment/error" fields inside Insales to redirect users after successful/erroneous payment. These are technical addresses, and there will be a 404 error when clicking on them.
{% endhint %}

**Should you have any questions, please do not hesitate to contact your account manager or use our 24/7 Unit.Help chat widget.**

{% hint style="warning" %}
VAT is set in your account settings in your Unitpay merchant profile when you fill in the organization information on the [/partner/contract](https://unitpay.ru/partner/contract) page. VAT settings are not passed in Insales itself.
{% endhint %}


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.unitpay.ru/en/modules/cms-modules/insales.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
