Paystack Payment Gateway Integration

Paystack is a leading payment gateway focused on Africa, enabling businesses in countries like Nigeria, Ghana, Kenya, and South Africa to accept payments seamlessly. It supports a variety of payment methods, including credit/debit cards, bank accounts, mobile money, USSD, and QR codes, with a modern API designed for developers. Paystack is ideal for businesses looking to process local and international transactions with high success rates and robust fraud protection.

This guide provides a step-by-step process to integrate Paystack into your application, from account creation to live deployment.


Step 1: Log in or Sign Up

  1. Visit Paystack: Go to Paystack and click Sign Up to create a new account or Log In if you already have one.
  2. Account Creation: Enter your email, password, and basic business details (e.g., name, country). Paystack supports both individual and business accounts.
  3. Email Verification: Check your inbox for a verification email from Paystack and click the link to confirm your account.
  4. Dashboard Access: After verification, log in to access the Paystack Dashboard, where you’ll manage payments, settings, and API keys.

Step 2: Set Up Your Account

Before processing payments, configure your Paystack account:

  1. Complete Your Profile:
  1. Business Verification (Required for Live Mode):
  1. Add a Settlement Bank:
  1. Test Mode: Until verified, you can use Test Mode to simulate transactions without restrictions.

Step 3: Obtain API Credentials

Paystack provides API keys for integration:

How to Get Your Credentials:
  1. In the Paystack Dashboard, go to Settings > API Keys & Webhooks.
  2. You’ll see:
  1. Key Security: Keep the Secret Key confidential—never expose it in client-side code. Copy both keys and store them securely.
  2. Add these to your application’s Admin Panel under System Settings > Payment Gateways > Paystack.

Step 4: Configure Payment Methods

Paystack supports multiple payment channels, which are enabled by default or upon request:

  1. Go to Settings > Payment Channels in the Paystack Dashboard.
  2. Available methods include:
  1. Contact Paystack support via support@paystack.com to enable additional methods not visible in your dashboard.
  2. These methods will appear in your checkout flow once integrated.

Step 5: Set Up Webhooks

Webhooks notify your server of payment events (e.g., successful transactions):

  1. In the Paystack Dashboard, go to Settings > API Keys & Webhooks.
  2. Scroll to the Webhook URL section and click Edit.
  3. Webhook URL:
  1. Events: Paystack sends events like charge.success (payment completed) or charge.failed (payment failed). You don’t need to select events manually—all relevant updates are sent.
  2. Click Save Changes.
  3. Test Webhook: Use the Send Test Webhook button to verify your endpoint works.

Step 6: Set Up Credentials in Our Dashboard

Integrate Paystack into your application:

  1. Log in to your application’s Admin Panel.
  2. Navigate to System Settings > Payment Gateways > Paystack.
Paystack API Keys
  1. Fill out the configuration form:
Paystack API Keys
  1. Detailed Fields:
  1. Click Submit to save. Your Paystack gateway is now configured.

Step 7: Test the Integration

Test your setup in Test Mode:

  1. Enable Test Mode:
  1. Simulate Payments:
  1. Verify Webhooks:
  1. Debugging: If issues arise, check the Paystack Dashboard’s Transactions tab for error details (e.g., “Card Declined”).

Step 8: Enable Live Mode

After successful testing:

  1. Paystack Dashboard:
  1. Admin Panel:
  1. Webhook Confirmation: Verify the webhook URL is still set correctly in the Paystack Dashboard.

Step 9: Go Live

Launch your Paystack integration:

  1. Start Accepting Payments:
  1. Live Verification:
  1. Troubleshooting:

Additional Tips

Note:

If you encounter any issues or need further help, our support team is available. Contact us at softivus@gmail.com or through the Admin Panel. Let’s get your Paystack integration up and running smoothly!