> ## 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 WayForPay as a payment method

WayForPay payment service is a simple solution for accepting payments on your website. Internet acquiring with 3-D Secure security technology.

||| ${color}[#F97700](Important:) Payment methods are available on websites with paid and Trial subscriptions.
|| ${color}[#FFA800](Note:) WayForPay has 32 currencies available for accepting payments, however, funds can only be credited in hryvnia (UAH). Funds are written off from foreign cards in hryvnia using conversion.

# Connecting Wayforpay to an online store

1. If you already have a WayForPay account, log in by following [this link](https://m.wayforpay.com/en/account/site/login).
If you do not have an account, [register using this link](https://wayforpay.com/en?openReg=1).

2. After this, you will need to create a store in your account. To do this, click the **Shop settings** button, then the **Create a shop** button:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-1_15eekqs.png)

3. Then, in the pop-up window, you need to select the card called **I'm owner of site**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-2_1oby3ek.png)

4. If the store creation is successful, you will see the following message:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-3_1ajnqyo.png)

||| ${color}[#F97700](Important:) During the first registration, your account will automatically be in test mode, so be sure to complete the registration process to gain access to your business account.

5. After you register a business account, log in to it. Your credentials for connecting the integration is located in the **Merchant Details** section:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-4_1dr4vs5.png)

6. In your website settings on Weblium, go to the **Your Store** section, then to the **Payment methods** subsection, and click on the **Add** button next to **WayForPay**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-5_direr0.png)

7. Paste **Merchant Login ①** and **Merchant Secret Key ②** into the appropriate fields:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-6_hqw9tt.png)

8. To the **Success redirect URL ③** and **Failure redirect URL ④** 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/).

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

| ${color}[#1AA900](Tip:) More information about setting up the integration can be found in [technical documentation](https://wiki.wayforpay.com/en) from WayForPay. Additionally, you can contact their support through various channels provided [here](https://help.wayforpay.com/view/3342700).

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

###### Deactivating the payment method
If necessary, you can hide the payment system without deleting it.
For that, return to the **Payment methods** section, and in the **Connected payment methods** subsection, turn the switch off:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-8_1lrhb1g.png)

# Connecting WayForPay to work in test mode

You can connect WayForPay in test mode to check the operation of the payment method without using your own bank card.

1. For testing, you can use the following:

* test data from your account in test mode (section **Merchant Details**)

* test data offered by WayForPay:
ㅤㅤㅤmerchantAccount **①** — `test_merch_n1`
ㅤㅤㅤmerchantSecretKey **②** — `flk3409refn54t54t*FNJRET`

| ${color}[#1AA900](Tip:) For more information about test mode, consult [documentation](https://wiki.wayforpay.com/en/view/852472) from WayForPay.

2. Return to Weblium and activate the **Test Mode** switch, then paste the previously copied data into the corresponding fields **①** and **②**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-9_zowz95.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 will see a payment page similar to this:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl-10_f9nut9.png)

5. To test the payments, you can use the following test cards: `4111 1111 1111 1111` and `5454 5454 5454 5454`
For both cards, you can specify any validity period (valid at the time of entry) and any CVV code. The owner's full name can also be arbitrary, but this field must be filled out.

|| ${color}[#FFA800](Note:) Such payments will be processed as unsuccessful. For successful payments you need to use a real card using real funds. If the store is in test mode, all payments are refunded automatically within 15 minutes.
| ${color}[#1AA900](Tip:) If you want to test successful payments without the risk of losing funds, you can create a product for 1 USD and pay for it.

### Sending payment emails to customers

Additionally, it is worth noting that it is now possible to manage the option of sending letters to your customers about the created order. If, when placing an order, the customer does not pay for it for specific reasons, he will be able to open the letter in his email and complete the payment. Letters are sent to the email address that the buyer specifies in the shopping cart when placing an order.

In the payment method settings, you can check the box next to **Send emails** or remove it so that emails about paid orders are not sent to customers on your website:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/englist-spovishennya-vid-wayfo_hvpu3x.png)

| ${color}[#1AA900](Tip:) By default the checkbox is activated.
|| ${color}[#FFA800](Note:) The link to pay for the order in the letter sent to the customer will be valid for 1 hour from the moment the letter is received (the order is created). That is, if the order you received is more than 1 hour old and has not been paid, the customer will probably no longer pay for it through WayForPay. You can contact such a buyer and offer him alternative payment methods. You can check the payment status of your order using [these instructions](https://help.weblium.com/en-us/article/managing-orders-in-the-online-store-y9yg7y/#3-how-can-you-process-an-order).

The email your customers will receive will approximately look like this:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/wayforpay-angl_17omd1s.png)

|| ${color}[#FFA800](Bear in mind:) Such letters could be sent in Ukrainian.