The Pay via ProxyAPI (PVP in short) extension for WooCommerce enables you to accept payments for Safaricom's M-Pesa payment gateway via ProxyAPI.
PVP enables one to directly integrate into MPesa using both Lipa na M-Pesa and C2B APIs. It enables you to simplify your checkout process and allow a customer to simply enter their phone number and have the Lipa na MPesa payment prompt sent immediately to their phone numbers, and the responses and callbacks automatically processed by WooCommerce.
For any assistance in your setup, please join the Support group at
Telegram or drop your query in the
Support Section. A response will be given asap.
DISCLAIMER
This is not an official plugin from M-Pesa, and this plugin does not have any control over the availability of M-Pesa APIs. Any issues not directly caused by or related to the plugin should be addressed to the Safaricom support group.
You will need an existing M-Pesa Shortcode to work with, and a ProxyAPI user account to get started. Please visit
https://proxyapi.co.ke to sign up for and set up an account. Once you have signed up, follow the instructions below to install the plugin.
AUTOMATIC INSTALLATION
- Login to your WordPress Dashboard.
- Click on "Plugins > Add New" from the left menu.
- In the search box type "Pay via ProxyAPI".
- Click on Install Now on Pay via ProxyAPI to install the plugin on your site.
- Confirm the installation.
- Activate the plugin.
- Click on "WooCommerce > Settings" from the left menu and click the "Payments" or "Checkout" tab.
- Click on the Pay via ProxyAPI option from the available Payment Options.
-
Configure your Pay via ProxyAPI settings accordingly. See below for configuration instructions.
MANUAL INSTALLATION VIA WORDPRESS ADMIN
-
Download the plugin zip file
- Login to your WordPress Admin. Click on “Plugins > Add New” from the left hand menu.
- Click on the “Upload” option, then click “Choose File” to select the zip file from your computer. Once selected, press “OK” and press the “Install Now” button.
-
After installation, go to WooCommerce -> Settings -> Payments tab (or equivalent for your WooCommerce version). You will see Pay via ProxyAPI (PVP) as part of the available payment checkout options. Activate the plugin, then configure it. See below for configuration instructions.
CONFIGURING THE PLUGIN
You shall need to enter the API Key. To get the API Key:
-
Log into the portal at https://api.proxyapi.co.ke
- Navigate to Shortcodes on the main menu
- Double click on the Shortcode you wish to use for PVP
- Make sure the "Use Shortcode for Pay via ProxyAPI" checkbox is selected and the settings saved on selection.
- At the bottom of the page, you will see the API Key field. You will see your API key in the text field.
After fetching the API key, enter the key in the API Key field in the WooCommerce PVP Settings page, then save the changes.