{"id":160513,"date":"2022-08-20T10:07:51","date_gmt":"2022-08-20T10:07:51","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/payment-gateway-for-m-pesa-open-api\/"},"modified":"2025-04-21T18:56:35","modified_gmt":"2025-04-21T18:56:35","slug":"payment-gateway-for-m-pesa-open-api","status":"publish","type":"plugin","link":"https:\/\/oci.wordpress.org\/plugins\/payment-gateway-for-m-pesa-open-api\/","author":15133669,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.0","stable_tag":"trunk","tested":"6.7.5","requires":"2.2","requires_php":"","requires_plugins":null,"header_name":"Payment Gateway for M-PESA Open API on Woocommerce Free","header_author":"Demkitech Solutions","header_description":"Payment Gateway for M-PESA Open API","assets_banners_color":"d9d2d2","last_updated":"2025-04-21 18:56:35","external_support_url":"","external_repository_url":"","donate_link":"#","header_plugin_uri":"https:\/\/demkitech.com\/","header_author_uri":"","rating":0,"author_block_rating":0,"active_installs":30,"downloads":2124,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"":"<p>This is the first version.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2772845,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2772845,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2772845,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2772845,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":{"Screenshot-1.PNG":{"filename":"Screenshot-1.PNG","revision":2772845,"resolution":"1","location":"assets","locale":""},"Screenshot-2.PNG":{"filename":"Screenshot-2.PNG","revision":2772845,"resolution":"2","location":"assets","locale":""},"Screenshot-3.PNG":{"filename":"Screenshot-3.PNG","revision":2772845,"resolution":"3","location":"assets","locale":""},"Screenshot-4.PNG":{"filename":"Screenshot-4.PNG","revision":2772845,"resolution":"4","location":"assets","locale":""}},"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[163268,3053,3050,6593,286],"plugin_category":[45],"plugin_contributors":[125073],"plugin_business_model":[],"class_list":["post-160513","plugin","type-plugin","status-publish","hentry","plugin_tags-m-pesa","plugin_tags-mobile-payments","plugin_tags-mpesa","plugin_tags-payment-gateway","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-dennokip","plugin_committers-dennokip"],"banners":{"banner":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/banner-772x250.png?rev=2772845","banner_2x":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/banner-1544x500.png?rev=2772845","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/icon-128x128.png?rev=2772845","icon_2x":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/icon-256x256.png?rev=2772845","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/Screenshot-1.PNG?rev=2772845","caption":""},{"src":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/Screenshot-2.PNG?rev=2772845","caption":""},{"src":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/Screenshot-3.PNG?rev=2772845","caption":""},{"src":"https:\/\/ps.w.org\/payment-gateway-for-m-pesa-open-api\/assets\/Screenshot-4.PNG?rev=2772845","caption":""}],"raw_content":"<!--section=description-->\n<p>The plugin enables the customer to have an option of paying merchants using M-PESA mobile money service from a Wordpress site that has WooCommerce plugin installed. \nThe plugin adds an option on the checkout section for paying through M-PESA(A mobile payment platform) Open API which is now available on these counties:\n<em>Congo, Ghana, Lesotho, Tanzania<\/em><\/p>\n\n<h4>PLUGIN SETUP FOR M-PESA OPEN API SANDBOX<\/h4>\n\n<ul>\n<li>Testing of the plugin is possible by creating an account in the <a href=\"https:\/\/openapiportal.m-pesa.com\/\">M-Pesa Open API Developer Portal<\/a>.<\/li>\n<li>After account creation, log in to the account, click on the menu at the top left corner of the portal.<\/li>\n<li>Click on Applications from the drop down menu.<\/li>\n<li>On the Applications window, click on New and fill the application details. Make sure you have chosen <em>C2B Single Payment<\/em> option.<\/li>\n<li>Once the application has been created, click on View option to check the application details.<\/li>\n<li>The plugin settings are found here on your website once logged in as Wordpress Administrator(WooCommerce :arrow: Settings :arrow: Payments :arrow: M-PESA Open API :arrow: Manage)<\/li>\n<li>Copy the <em>Sandbox API Key<\/em> value which you will fill in this plugin settings.<\/li>\n<li>Open the C2B Single Payment documentation <a href=\"https:\/\/openapiportal.m-pesa.com\/api-documentation#APIRequests\">here<\/a> and copy the <em>publicKey<\/em> value on the sample code which you will paste in the plugin settings.<\/li>\n<li>The <em>Country<\/em> and <em>Currency<\/em> to be configured on the plugin are in the <em>API Markets<\/em> table on the <a href=\"https:\/\/openapiportal.m-pesa.com\/api-documentation\">Documentation<\/a> page.<\/li>\n<li>Use <em>000000<\/em> as the Service Code provided for testing on Sandbox<\/li>\n<li>The endpoints will be prefilled but if not available copy from the documentation page.<\/li>\n<li>After filling all these items on the plugin settings, click on Save and test purchasing of products on the website.<\/li>\n<\/ul>\n\n<p><strong>Note these items when testing in Sandbox:<\/strong>\n1. You can add test numbers on the M-Pesa Open API Portal.\n2. This number(000000000001) will give a successful response on Sandbox, but there will be no USSD Push received.<\/p>\n\n<h4>PLUGIN SETUP FOR M-PESA OPEN API PRODUCTION<\/h4>\n\n<ul>\n<li>The plugin settings will need to be changed to use the production details<\/li>\n<li>Use the Go Live process on the M-Pesa Open API portal in order to get the production details<\/li>\n<li>Once the Go Live process is successful and you have all the details, replace them on the plugin settings, save and test.<\/li>\n<li>Remember to update the endpoints too, to the production endpoints provided on the M-Pesa Open API documentation section.<\/li>\n<\/ul>\n\n<h4>PLUGIN CUSTOMER JOURNEY<\/h4>\n\n<ul>\n<li>When the customer clicks on the Pay button on the payment page, the plugin will initiate a payment authorization request to the customer. <\/li>\n<li>The customer will then accept or decline the payment from the personal mobile phone.<\/li>\n<li>The order status in the online shop is then changed depending on the customer's action(In the Pro Version).<\/li>\n<li>This  <strong>free version<\/strong> of the plugin does not change order status and does not have the functionality of checking the transaction status of the payments but the Pro Version does.<\/li>\n<li>The main purpose of the <strong>free version<\/strong> is to test the functionality of how your website will work and it's compatibility with your website before deciding to use it in production.<\/li>\n<li>Please check the  <strong>DEMO<\/strong> of the Pro Version of the plugin <a href=\"https:\/\/demowoompesa.demkitech.com\/\">HERE<\/a><\/li>\n<li>The <strong>Pro Version<\/strong> is currently <em>Free<\/em>, please request for it by sending an email to <em>info@demkitech.com<\/em> <\/li>\n<\/ul>\n\n<h4>Plugin features:<\/h4>\n\n<ul>\n<li>Compatible with Wordpress themes.<\/li>\n<li>Easy to use.<\/li>\n<li>Lightweight.<\/li>\n<li>Supports all modern browsers.<\/li>\n<\/ul>\n\n<h4>How to use:<\/h4>\n\n<ol>\n<li>Make sure you have installed and activated WooCommerce plugin before installing and activating this plugin.<\/li>\n<li>Upload the Payment Gateway for M-PESA Open API on WooCommerce plugin files to the wordpress plugins directory (\/wp-content\/plugins\/), or install the plugin from th Wordpress admin plugin screen.<\/li>\n<li>Activate the plugin.<\/li>\n<li>On the Wordpress admin, navigate to (WooCommerce :arrow: Settings :arrow: Payments :arrow: M-PESA Open API :arrow: Manage) and fill in the fields provided in order for the plugin to work.<\/li>\n<\/ol>\n\n<h4>Demo Video<\/h4>\n\n<p>Coming Soon<\/p>\n\n<h3>Disclaimer<\/h3>\n\n<p>This plugin does not have any relation with WooCommerce or M-PESA. The plugin\u2019s purpose is just to help in linking the WooCommerce plugin with the M-PESA payment method. \nIn the plugin description there is links to other websites which are not under the control of Payment Gateway for M-PESA Open API Plugin. We have no control over the nature,\ncontent and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Unzip files.<\/li>\n<li>Upload the folder into your plugins directory.<\/li>\n<li>Activate the plugin.<\/li>\n<li>Update the settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<p>How does the customer authenticate the payment?\nThe customer receives a USSD push to authenticate the payment and this is secure since it is the customer doing this.<\/p>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>","raw_excerpt":"The plugin enables the customer to have an option of paying merchants using M-PESA mobile money service from a Wordpress site that has WooCommerce plu &hellip;","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/160513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=160513"}],"author":[{"embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/dennokip"}],"wp:attachment":[{"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=160513"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=160513"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=160513"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=160513"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=160513"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/oci.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=160513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}