> ## 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 LiqPay to your online store

LiqPay is a trusted service that instantly processes worldwide payments from Mastercard and Visa. On top of that, it supports Google Pay.

Connect LiqPay as a payment method to your online store so that your customers could purchase your products in any currency using all major credit/debit cards.

${youtube}[Connecting LiqPay](Zi8o98aT8d0)

||| ${color}[#f97700](Important:) You can set up payment methods on Pro and Trial websites.

### Step 1. Getting the Publishable and Secret keys

1. Sign up or log in to the existing account on [LiqPay](https://www.liqpay.ua/en/).

|| ${color}[#ffa800](Note:) Add the **Account name** in your account settings to be able to process payments:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1102-1_1fkihr.png)

2. On the **Home** page, open **Get of the production keys API** section and copy the **Publishable key** and **Secret key**:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1153-1_1east52.png)

| ${color}[#1aa900](Tip:) If you enable the test mode for the account, the section will be called **Get the API sandbox keys.**

### Step 2. Connecting LiqPay to your online store

1. Open the **Settings** of the site and navigate to the **Payment methods** tab:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1076_tp9njf.png)

2. Click **Add** near LiqPay:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1101-2_17oj4d4.png)

3. If you have the live keys, enter them into the **Publishable key** and **Secret key** fields in the **Connection** section:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1104-1_6tiv8u.png)

4. Add **a success redirect URL** and **a failure redirect URL**: 

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1107-1_1vqj55w.png)

This is a great way to present your Thank You page after the successful purchase. See the article [Creating a Thank You page](https://help.weblium.com/en-us/article/creating-a-thank-you-page-wc8zfu/) for more information.

||| ${color}[#f97700](Important:) You should paste the links in the `https://` format.

5. Add a title that will be displayed on checkout:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1107-2_1j5cwd5.png)

6. Enter variables and your text into the Payment reference field. For example, these could be **Order created [order.date], [order.time]**. Press on the button **Show variables** to look through all available ones:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/en-payment-reference_17f7d04.png)

These variables will be replaced by the actual data of each individual order.

7. You can activate the **Enable fiscalization** checkbox under the payment method name:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/liqpay-en-fis_12ooukh.png)

|| ${color}[#FFA800](Note:) During the fiscalization process, the product SKU will be transferred to Liqpay.
||| ${color}[#F97700](Important:) For the correct fiscalization work, it is necessary to specify the same SKU for the products on the Weblium side as for the products in LiqPay.

8. Click **Save** to proceed with the integration:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1108-1_6ive8w.png)

9. Go back to the **Payment methods** tab and toggle on the **LiqPay** integration:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1109-1_1vxvywr.png)

10. Finally, [publish](https://help.weblium.com/en-us/article/publishing-a-site-tgxmch/) your website.

11. Now your customers will see the LiqPay payment option in the shopping cart:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1110_tezsmg.png)

12. Upon choosing the payment method, your customers will be redirected to LiqPay checkout. You can customize this page in the settings of your LiqPay account.

|| ${color}[#ffa800](Note:) Even if the payment has failed, the order will be saved in the **Orders **tab with **Unpaid** status:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1085_16v1su3.png)

# Connect Liqpay to work in test mode

You can connect Liqpay in test mode to check the payment method's operation without using your bank card.

1. Your Liqpay account contains test data, namely **public_key ①** and **private_key ②**, which always begin with the `sandbox_` prefix. They need to be copied.

|| ${color}[#FFA800](Note:) More information about testing the payment process can be found [here](https://www.liqpay.ua/en/doc/api/testing).

2. Return to Weblium and activate the **Test Mode** switch, then paste the previously copied keys into the corresponding fields **①, ②**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/liqpay-en-1_t7nj2y.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.

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

4. After setting up the test mode correctly, you can place a test order in your online store, where after filling out the shopping cart, you will see a payment page similar to this:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/liqpay-en-2_1sthy6h.png)