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

Stripe is an online payment processing platform that allows businesses to receive payments over the internet. Connect Stripe as a payment method to your online store so that your customers can purchase your products in any currency using all major credit/debit cards.

Currently, Stripe operates in 42 countries. See the full list of supported countries on the [Stripe's official website](https://stripe.com/global).

||| ${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 [Stripe](https://stripe.com/).

|| ${color}[#ffa800](Note:) Add the **Account name** in your ** [Account Settings](https://dashboard.stripe.com/settings/account) ** to be able to process payments:

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

2. Navigate to the **Developers** section on the sidebar and open the **API keys** section:

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

3. Copy the **Publishable key** and **Secret key**:

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

### Step 2. Connecting Stripe 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 Stripe:

![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/template-1077_xjmr7x.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-1095_1xufv1e.png)

4. Add **a success redirect URL** — a link to the page your customer will see after successful payment:

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

| ${color}[#1aa900](Tip:) This is a great way to present your "Thank You" page after the successful purchase. See the [Creating a Thank You page](https://help.weblium.com/en-us/article/creating-a-thank-you-page-wc8zfu/) article for more information.

5. Add **a failure redirect URL** — a link to the page your customer will see after failed payment:

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

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

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

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

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

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

8. Go back to the **Payment methods** tab and toggle on the **Stripe** integration:

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

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

Now your customers will see the Stripe payment option in the shopping cart:

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

|| ${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 Stripe to work in test mode

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

1. Your Stripe account contains test data, namely **Publishable key ①** and **Secret key ②**, which always begin with the prefix `pk_test` and `sk_test`. They need to be copied.

|| ${color}[#FFA800](Note:) More information about testing the payment system can be found [here](https://docs.stripe.com/connect/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/stripe-en-1_x35ucy.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/stripe-en-2_1f5t278.png)