Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5530

Guide Magento 2 Mpesa Payment Gateway

$
0
0

Magento 2 M-Pesa payment gateway is a secure mobile-based money transfer gateway that allows customers to pay using their mobile numbers securely in the store.

Furthermore, This payment gateway gives customers the option of paying for their goods and items with the M-Pesa payment.

Moreover, The admin can display the payment gateway logo on the checkout page, Also admin can allow selected countries to use the M-Pesa payment method.

M-Pesa Payment Gateway Features

  • Magento 2 is compatible with the M-Pesa payment method.
  • Option to give the payment method a unique title.
  • The admin can make a full or partial refund online for any placed order.
  • The M-Pesa payment gateway logo can be display.
  • Allow M-Pesa payments in certain countries.
  • Payment using the mobile number
  • Customers are able to check their payment information in the “My Account” area.
  • Allow admins to check payment details in the backend’s Sales Order View.
  • Increases customer satisfaction and loyalty

Installation

#Download Module

Firstly, you need to log in to Webkul Store, go to My Account>My Purchased Products section, verify and then download and extract the contents of this zip folder on the system.

#Upload Folder

Once the module zip is extracted, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

Guide Magento 2 Mpesa Payment Gateway

#3 Run Commands

You need to run the following commands:

  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento setup:static-content:deploy
  • php bin/magento indexer:reindex
  • php bin/magento cache:flush

Language Translation of M-Pesa Payment Gateway

For translating the module language, navigate through src/app/code/Webkul/Mpesa/i18n and edit the en_US.csv file. Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.

webkul-magento2-paytabs-sadad-payment-multilingual-2

Then upload it to the path src/app/code/Webkul/Mpesa/i18n where the Magento 2 is installed on the server. The module gets translated into the Arabic Language. It supports both RTL and LTR languages.

The user can edit the CSV like the image below.

translation_mpesa-1-2

Admin Configuration

So, after the module has been successfully install, the admin can setup it up from the admin panel by going to Stores->Configuration->Sales->Payment Methods->M-Pesa Payment.

neha1

M-Pesa Payment Gateway Configuration Points:

  • Enable/Disable Module– The admin can enable or disable the module from here.
  • Sandbox Mode- By this option, the admin can enable or disable the Testing(sandbox) mode.
  • New order status- Here, the admin can select the status of the new order placed when we are selecting the respective payment method.
  • Title – Now, in this field, the admin has to enter the title for the M-Pesa payment Method, which will get display on the Front-end during checkout.
  • Upload logo from M-Pesa– Here, the admin can upload a logo for M-Pesa.
  • Payment from Applicable Countries – All those countries for which the admin wishes to make the payment method applicable.

Magento 2 M-Pesa Payment Gateway Front End

Now, After Successful Integration And the Setup Of The M-Pesa Payment Gateway For Magento 2.

The Customer Can Visit The Website And Add The Product To The Cart, Then Process Further To Checkout And Complete The Order.

mpesa_place_order

Now, the customer can, however, view the payment method at the time of checkout and choose it for safer payment.

The Customer Will Redirect To The Thank You Page After Making The Successful Payment.

success_page_order_mpesa

Furthermore, once the order gets placed successfully, the customer will navigate to the My Orders sections to view the order details as per the below image:

mpesa_method_showing

Orders

Also, the admin can easily view and manage the orders placed through the M-Pesa payment method. And, for this, the admin will navigate to Orders as per the below image.

order.magento

Here, the admin can view the complete list of orders.

Moreover, can select the order to view and manage the orders. After clicking the View link, the order information page will open up as per the below image:

admin_end_order_successful

Support

That’s all for M-Pesa Payment Gateway For Magento 2 module.

Still, have any issues feel free to add a ticket.

Moreover, let us know your views to make the module better at our HelpDesk System.


Viewing all articles
Browse latest Browse all 5530

Trending Articles