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

Paystack is a Nigerian financial technology company offering payment processing services to businesses. In 2020, it was acquired by Irish-American financial services company Stripe for $200M. It provides modern online and offline payments for Africa.

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

# Connecting PayStack to your online store

1. [Sign up](https://dashboard.paystack.com/#/signup) for a new account or [log in](https://dashboard.paystack.com/#/login) to an existing one.

2. In your business account, go to the **Settings** section, then open the **API Keys & Webhooks** tab and copy your **Secret Key**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-1_1oqadak.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 **PayStack**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-2_160xoit.png)

4. Paste your **Secret Key ①** (API key) into the appropriate field:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-3_xfbx8x.png)

5. 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/).

6. After all the fields are filled in correctly, save the changes:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-4_1d81wc.png)

| ${color}[#1AA900](Tip:) You can find out more about setting up the integration in [technical documentation](https://paystack.com/docs/) from PayStack. In addition, feel free to contact their support team for additional assistance if needed by hello@paystack.com.

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

|| ${color}[#FFA800](Note:) The currency in your PayStack account must match the one in your store settings on Weblium. You can find the list of all supported currencies [here](https://support.paystack.com/hc/en-us/articles/360009973779-What-currency-is-available-to-my-business).

###### 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/paystack-5_ythk58.png)

# Connecting PayStack to work in test mode

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

1. Log in to your test account via [this link](https://dashboard.paystack.com/#/login).

| ${color}[#1AA900](Tip:) More information about the test mode can be found in the [documentation](https://paystack.com/docs/payments/test-payments/) from PayStack.

2. Your test credentials are already available on the main account page (the **Get Started** section):
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-6_lt0wp3.png)

3. Go back to Weblium, activate the **Test mode**, and paste those credentials to the corresponding fields **①**:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-7_40fri9.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 shopping cart:
![](https://storage.crisp.chat/users/helpdesk/website/fa84b4d83a50e800/paystack-8_bsqvxr.png)