Paystack

Dokan Multi Vendor Documentation

Dokan has integrated Paystack into its list of supported payment gateways, enabling vendors to accept payments from customers in Africa easily.

Paystack is a popular and secure payment solution that supports various payment methods, including credit/debit cards, bank transfers, mobile money, and more. With this integration, Dokan-powered marketplaces can now offer seamless transactions and provide a familiar, trusted payment option for customers across Africa.

We are going to show you how to configure the Paystack payment gateway module with Dokan.

How to Enable Paystack Payment Gateway Module

First, you need to activate the Paystack module from your Dokan dashboard. To do that, go to Dokan–> Modules. Then, search for Paystack and activate the module-

This is a screenshot of activating module

In order to use Paystack, you need to make sure your site currency is changed to ZAR from WooCommerce–>Settings–> General section-

This is a screenshot of currency to ZAR

Now, to configure the Paystack, go to WooCommerce–> Settings–> Payments option and click on the Manage button-

This is a screenshot of managing paystack

Next, you need to configure Paystack with the neccessary information-

This is a screenshot of paystack keys

Enable/Disable: Check the box to enable (or disable) the Dokan Paystack payment gateway. 

Title: Give a title or use the default one that the customers will see during checkout. 

Description: Add a description or use the default one; customers will see this on the checkout page.

Seller pays the processing fee: If this option is enabled, then the admin and vendor will share the processing fee. Otherwise, the admin will bear the processing fee.

Test mode: Enable the Test Mode.

Test Public Key: Add the Test Public Key Here.

Test Secret Key: Add the Test Secret Key

Debug Log: Log gateway events such as Webhook requests, Payment operations, etc.

Collect Paystack API Credentials

Now, you need to collect the API credentials from Paystack. To do that login to your Paystack account, then go to the Settings option-

This is a screenshot of paystack settings

Then, in the API Keys & Webhooks section, you will find the necessary keys-

This is a screenshot of getting key from Paystack

Copy the keys and paste it in the Dokan configuration section.

Save the changes.

Enabling Withdraw Method

For the vendors to connect their account to Paystack, go to Dokan–> Settings–> Withdraw Options and enable the Paystack option-

This is a screenshot of enabling the paystack option from dokan settings

Then Save the Changes.

How to Connect Account-Vendors

Vendors need to connect their account to use the Paystack payment gateway from their vendor dashboard.

To do that go to Vendor Dashboard–> Settings–> Payment-

This is a screenshot of vendor dashboard

From the Drop-down, select the Direct to Paystack option-

This is a screenshot of direct to paystack

Then you will get a pop-up where the vendors need to write their Business name, account number, choose a bank from the dropdown, and click on the Create Account

This is a screenshot of connecting vendor account

After the successful connection, the vendor can now use the Paystack payment gateway-

This is a screenshot of account successfully created

Using Paystack to Pay- Customer

Customers will see the Paystack payment gateway in the checkout page-

This is a screenshot of checkout

They will get a pop-up and type their information to complete the transaction-

This is a screenshot of pop-up

Order View-Admin

Now admin can see the order details from the backend-

This is a screenshot of order section

This is how you can configure the Paystack payment gateway with Dokan.