> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.weblium.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Connecting UAPAY as a payment method

UAPAY is a Ukrainian payment service that provides financial and technical solutions for any type of online business. This system will help you receive payments online and speed up your business processes.

||| ${color}[#F97700](Important:) Payment methods are available on websites with the Pro and Trial subscriptions.

# Connecting UAPAY to an online store

1. [Register](https://account.uapay.ua/auth/register) or [login](https://account.uapay.ua/auth/login) to an existing account on UAPAY for business:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-1_1rmcbkw.png)

|| ${color}[#FFA800](Note:) The screenshot shows a short express instruction on what needs to be done to complete the registration.

2. After completing registration with the manager from UAPAY, go to the **Мої Магазини** (My Stores) section and copy **ID** and **Merchant Secret Key** from there:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-2_15tlbi0.png)

3. Go to the **Your Store** section, then to the **Payment methods** subsection in your site settings on Weblium, and click on the **Add** button next to **UAPAY**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-3_1bsl8ws.png)

4. Paste your **ID (1)** and **Merchant Secret Key (2)** into the appropriate fields:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-4_u8pke6.png)

5. To the **Success redirect URL (3)** and **Failure redirect URL (4)** fields, you can add links to your custom success and failure pages you had created.

||| ${color}[#F97700](Important:) You should paste the links that start from `https://`.
| ${color}[#1AA900](Tip:) To know how to add pages, check [this guide](https://help.weblium.com/en-us/article/adding-pages-and-subpages-xbuaj2/). You can also learn how to customize a "Thank you" page in [this article](https://help.weblium.com/en-us/article/creating-a-thank-you-page-wc8zfu/).

6. In the **Payment reference** field **(5)**, you can specify additional data transferred to UAPAY along with the order. You can click on the **Show variables** button:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/pereroblenij-portmone-angl-4_qcnjw6.png)

...and copy the variable from there, then paste it into the payment reference field. When ordering, instead of the specified variable, the required value will be substituted (order number, time, site domain, etc.) and transmitted as a payment description to UAPAY:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/pereroblenij-portmone-angl-5_ju8f5v.png)

7. After all the fields are filled in correctly, save the changes:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-5_15r60zb.png)

8. Return to the **Payment methods** section, and in the **Connected payment methods** subsection, make sure the switch next to the newly added UAPAY is on:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-6_mhx4ln.png)

| ${color}[#1AA900](Tip:) You can find out more about setting up the integration in [technical documentation](https://uapayua.atlassian.net/wiki/spaces/WIKI/pages/1198391442) from UAPAY.

9. [Publish](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) your site for the changes to take effect.

# Connecting UAPAY to work in test mode

You can connect UAPAY in test mode to test the payment method's operation without using your bank card. To do this, you need to register a separate test account.

1. [Register](https://account.demo.uapay.ua/auth/register) or [login](https://account.demo.uapay.ua/auth/login) to an existing test account on UAPAY for business.

| ${color}[#1AA900](Tip:) You can use the same registration information that you entered to create a real account.

2. Go to the **Мої Магазини** (My Stores) section and copy **ID (1)** and **Merchant Secret Key (2)** from there, similar to point 2 of the previous section.

3. Go back to Weblium, activate the **Test mode**, and paste those credentials to the corresponding fields **(1)** and **(2)**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-7_zyx244.png)

||| ${color}[#F97700](Important:) The non-test mode fields marked with an asterisk below must also be filled in. You can enter the same sandbox credentials there if you have not entered data for real payments.

4. Save changes and [publish](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) your website.

5. After setting up the test mode correctly, you will see a payment page similar to this after you click on the **Order** button in the cart:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/uapay-angl-9_19jfe7n.png)

||| ${color}[#F97700](Important:) Pay attention to the link of the above page: `payment.demo.uapay.ua` — this means that the test mode is being used on the side of the payment system.
| ${color}[#1AA900](Tip:) Test cards for checking the operation of the payment system can be found at [this link](https://uapayua.atlassian.net/wiki/spaces/AC/pages/881295361).