Articles on: Payment methods

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.

Important: Payment methods are available on websites with paid and Trial subscriptions.

Connecting PayStack to your online store



Sign up for a new account or log in to an existing one.

In your business account, go to the Settings section, then open the API Keys & Webhooks tab and copy your Secret Key:


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:


Paste your Secret Key ① (API key) into the appropriate field:


To the Success redirect URL ② and Failure redirect URL ③ fields, you can add links to your custom success and failure pages you had created.

Important: You should paste the links that start from https://.
Tip: To know how to add pages, check this guide. You can also learn how to customize a "Thank you" page in this article.

After all the fields are filled in correctly, save the changes:


Tip: You can find out more about setting up the integration in technical documentation from PayStack. In addition, feel free to contact their support team for additional assistance if needed by hello@paystack.com.

Publish your site for the changes to take effect.

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.

Deactivating a 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:


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.

Log in to your test account via this link.

Tip: More information about the test mode can be found in the documentation from PayStack.

Your test credentials are already available on the main account page (the Get Started section):


Go back to Weblium, activate the Test mode, and paste those credentials to the corresponding fields :


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.

Save changes and publish your website.

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:

Updated on: 06/21/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!