Magento 2 Paystack Payment Gateway

 

Magento 2 Paystack Payment Gateway extension integrates Magento 2 store with Africa's Paystack payment gateway to accept secure online payments.

 

Table of Content

  1. Extension Installation
  2. Configuration
  3. Paystack Payment Method in Frontend
  4. Paystack Payment Details in Backend
  5. Paystack Admin Panel

           

  1. Extension Installation
  • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
  • Log in to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
    • php bin/magento cache:flush
  • That’s it.
     
  1. Configuration
    To configure the extension, login to Magento 2, move to Sales > Payment Methods > Paystack Payment - Meetanshi where you can find various settings to enable the extension.
  • Enabled: Set “YES” to enable the payment method.
  • Title: Set the title for the payment method to be displayed in the frontend.
  • Show Paystack Logo: Set YES to show Paystack logo along with the payment method in the frontend.
  • Sandbox Mode: Select YES to enable sandbox mode.
  • Test Secret Key: Enter the test/live secret key provided by Paystack while registration.
  • Test Public Key: Enter the test/live public key provided by Paystack while registration.


 

Note: Create a callback URL at https://yoursite.com/paystack/payment/success/ and paste in the “Test Callback URL” option. Slash (/) at the end of the URL is mandatory.

  • Allow Auto Invoice: Select YES to automate invoice generation for the orders paid using Paystack payment method.
  • Payment from Applicable Countries: Select countries to allow using this payment method.
  • Additional Information: Add additional information to show along with the payment method on the checkout page.
  • Sort Order: Enter Sort Order of the payment method display in the frontend.


  

  1. Paystack Payment Method in Frontend
    Once the payment method is configured, Paystack Payment method is shown on the frontend while checking out the products. Just select the payment method, click “Continue to Payment” to get redirected to the payment page and complete the payment.


  

  • Adding Card Details
    Once the customer gets redirected to the payment gateway, he needs to enter the card details and click to pay.


  

  • Payment Success Message
    Once the payment is completed, the customer gets the payment success message and gets back to the website.


 

  • Paystack Payment Details in “My Account” section
    Once the order is placed, the Paystack payment details are shown in the Account dashboard, in “My Orders” tab which includes entity ID and reference ID.


  

  1. Paystack Payment Details in Backend
    Apart from the customers, admin can also see the payment details for the orders in the backend. Go to Sales > Orders and you can see Paystack payment details under a particular order.


  

  1. Paystack Admin Panel
    Admin can see payment and customer details in the admin panel of the Paystack payment gateway. Simply log in to Paystack with your credentials and under the “Transactions” tab, you can see all the order details.


  

  • Order and Payment Details
    Click the order from the transaction to view the order and payment details of a particular Paystack order.