前言介紹
- 這款 WordPress 外掛「Payment Gateway for M-PESA Open API on WooCommerce」是 2022-08-19 上架。
- 目前有 30 個安裝啟用數。
- 上一次更新是 2025-04-21,距離現在已有 12 天。
- 外掛最低要求 WordPress 2.2 以上版本才可以安裝。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
dennokip |
外掛標籤
MPESA | M-PESA | woocommerce | Mobile Payments | payment gateway |
內容簡介
這個外掛讓顧客能夠在安裝了 WooCommerce plugin 的 WordPress 網站上透過 M-PESA 行動支付服務支付商家。此外掛會在結帳區段新增一個支付 M-PESA(一個行動支付平台)的選項。以下國家目前開放此 Open API:
剛果、迦納、萊索托、坦桑尼亞。
設定 M-PESA Open API 測試環境的外掛程式
請建立帳號在 M-Pesa Open API Developer Portal 可以進行外掛程式的測試。
建立帳號後,登入帳號,點擊頁面左上角的「Menu」。
在下拉選單中點擊「Applications」。
在「Applications」視窗中,點擊「New」並填寫應用程式的詳細信息。請確保你已經選擇了 C2B 單一支付選項。
建立應用程式後,點擊「View」選項查看應用程式詳細信息。
插件設置在訂單管理區(WooCommerce ➡ 設定 ➡ 付款 ➡ M-PESA Open API ➡ Manage)中。
複製 Sandbox API Key 值,並將其填入此插件設置中。
開啟 C2B 單一付款文檔 這裡,並複製範例程式碼中的 publicKey 值,將其貼到插件設置中。
在 API 市場表上,設置插件所需的國家和貨幣,可在 API 文檔 頁面上找到。
測試時可用 000000 作為 Sandbox 提供的服務代碼。
端點將預先填好,但如果未經認證,請從文檔頁面複製。
在填寫此插件設置中的所有項目後,點擊保存按鈕並在網站上測試購買產品。
測試 Sandbox 時請注意以下事項:
1. 您可以在 M-Pesa Open API Portal 上添加測試號碼。
2. 這個號碼(000000000001) 在 Sandbox 上會得到成功的反應,但不會收到 USSD 操作。
設置 M-PESA Open API 正式環境的外掛程式
需要更改插件設置來使用生產細節。
請在 M-Pesa Open API 门户网站上使用 Go Live 流程來獲取生產細節。
在 Go Live 流程成功且您獲得所有細節後,將其替換插件設置,保存並測試。
在插件設置的「Production Endpoints」 頁面上更新 API 的端點細節,以使用生產細節。
插件客戶流程
當客戶在付款頁面上單擊「Pay」按鈕時,插件將向客戶發起一個支付授權請求。
然後客戶將接受或拒絕手機中的支付。
在線商店的訂單狀態將根據客戶的操作發生變化(僅在 Pro 版本中)。
這個免費版本的插件不會更改訂單狀態,並且沒有檢查付款交易狀態的功能,但 Pro 版本有。
免費版本的主要目的是在決定是否要在生產中使用它之前,測試網站功能及其與網站的兼容性。
請查看插件示範 Pro 版本。
目前,Pro 版本免費,請通過電子郵件 [email protected] 請求。
原文外掛簡介
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.
The 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:
Congo, Ghana, Lesotho, Tanzania
PLUGIN SETUP FOR M-PESA OPEN API SANDBOX
Testing of the plugin is possible by creating an account in the M-Pesa Open API Developer Portal.
After account creation, log in to the account, click on the menu at the top left corner of the portal.
Click on Applications from the drop down menu.
On the Applications window, click on New and fill the application details. Make sure you have chosen C2B Single Payment option.
Once the application has been created, click on View option to check the application details.
The plugin settings are found here on your website once logged in as WordPress Administrator(WooCommerce ➡ Settings ➡ Payments ➡ M-PESA Open API ➡ Manage)
Copy the Sandbox API Key value which you will fill in this plugin settings.
Open the C2B Single Payment documentation here and copy the publicKey value on the sample code which you will paste in the plugin settings.
The Country and Currency to be configured on the plugin are in the API Markets table on the Documentation page.
Use 000000 as the Service Code provided for testing on Sandbox
The endpoints will be prefilled but if not available copy from the documentation page.
After filling all these items on the plugin settings, click on Save and test purchasing of products on the website.
Note these items when testing in Sandbox:
1. You can add test numbers on the M-Pesa Open API Portal.
2. This number(000000000001) will give a successful response on Sandbox, but there will be no USSD Push received.
PLUGIN SETUP FOR M-PESA OPEN API PRODUCTION
The plugin settings will need to be changed to use the production details
Use the Go Live process on the M-Pesa Open API portal in order to get the production details
Once the Go Live process is successful and you have all the details, replace them on the plugin settings, save and test.
Remember to update the endpoints too, to the production endpoints provided on the M-Pesa Open API documentation section.
PLUGIN CUSTOMER JOURNEY
When the customer clicks on the Pay button on the payment page, the plugin will initiate a payment authorization request to the customer.
The customer will then accept or decline the payment from the personal mobile phone.
The order status in the online shop is then changed depending on the customer’s action(In the Pro Version).
This free version 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.
The main purpose of the free version 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.
Please check the DEMO of the Pro Version of the plugin HERE
The Pro Version is currently Free, please request for it by sending an email to [email protected]
Plugin features:
Compatible with WordPress themes.
Easy to use.
Lightweight.
Supports all modern browsers.
How to use:
Make sure you have installed and activated WooCommerce plugin before installing and activating this plugin.
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.
Activate the plugin.
On the WordPress admin, navigate to (WooCommerce ➡ Settings ➡ Payments ➡ M-PESA Open API ➡ Manage) and fill in the fields provided in order for the plugin to work.
Demo Video
Coming Soon
Disclaimer
This plugin does not have any relation with WooCommerce or M-PESA. The plugin’s purpose is just to help in linking the WooCommerce plugin with the M-PESA payment method.
In 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,
content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Payment Gateway for M-PESA Open API on WooCommerce」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Google for WooCommerce 》, Google Listings & Ads可讓您輕鬆地向Google平台上的購物者展示您的產品。無論您是數位廣告的新手還是市場營銷專家,您都可以通過免費和廣告來擴大您的...。
WooCommerce Shipping & Tax 》WooCommerce Shipping & Tax 外掛可讓基本的電子商務功能如運送更加可靠,并減輕了您的網站基礎架構壓力。, 使用 WooCommerce Shipping & Tax 外掛,...。
WooCommerce PayPal Payments 》PayPal 最新、功能最完備的付款處理解決方案。除了接受 PayPal 獨有的付款方式,也可接受信用卡/借記卡和本地付款方式。開啟 PayPal 付款選項或處理完整的付...。
WooCommerce Legacy REST API 》總結:, - 在WooCommerce 9.0版本起,Legacy REST API將不再是WooCommerce的一部分。, - 這款外掛程式在WooCommerce 9.0及以後版本中還原了已移除的Legacy RE...。
WP Crontrol 》WP Crontrol 可以讓您查看和控制 WP-Cron 系統中正在發生的事件。從管理界面,您可以:, , 查看所有的 Cron 事件以及它們的參數、循環間隔時間、回撥函數以及...。
PDF Invoices & Packing Slips for WooCommerce 》這個 WooCommerce 外掛可以自動為您的客戶在訂單確認電子郵件中添加 PDF 發票。包括一個基本模板(額外的模板可從 WP Overnight 購買),以及修改/建立自己的...。
Variation Swatches for WooCommerce 》為 WooCommerce 產品屬性打造美麗的顏色、圖片和按鈕變化的樣式, 如何安裝 WooCommerce 變化樣式外掛程式升級可變產品, , 變化樣式是易於使用的 WooCommerce ...。
WooCommerce Cart Abandonment Recovery 》現在是時候停止購物車放棄行為,並找回您失去的收入了!, 研究顯示,約有60%至80%的使用者前往結帳頁面,但沒有完成購買。即使最佳優化的結帳流程也有20%的...。
Pinterest for WooCommerce 》Pinterest 提供人們下一個偉大的想法。它部分收藏品,部分市場,是數百萬個分享者獲取靈感、新產品和新可能性的一站式購物平台。它就像一個視覺搜尋引擎,引...。
Google Analytics for WooCommerce 》這個外掛提供了 Google Analytics 與 WooCommerce 外掛之間的整合,您可以將推薦連結與購買關聯,並將交易資訊新增到您的 Google Analytics 資料中。它還支援...。
User Switching 》這個外掛可讓您輕鬆在 WordPress 中點擊按鈕即可快速切換使用者帳戶。您會立即登出並切換成所需使用者。這對於測試環境、協助 WooCommerce 網站上的客戶或任...。
WooCommerce Checkout & Funnel Builder by CartFlows 》#1 WooCommerce 結帳 & 漏斗建置外掛 – CartFlows, ★★★★★, 相較於其他所有的 WooCommerce 結帳選項,更多 WooCommerce 商店店主都選擇了 CartFlows。為什麼呢...。
FiboSearch – Ajax Search for WooCommerce 》這是最受歡迎的 WooCommerce 產品搜尋外掛。它為您的用戶提供了一個設計良好的 AJAX 高級搜尋條和即時搜尋建議。, 預設情況下,WooCommerce 提供了一個非常簡...。
YITH WooCommerce Quick View 》有時半途而廢是最好的:如果你正在檢視產品列表,但其圖片仍然太小,需要打開該產品頁面,等待載入,最後才能觀察你感興趣的項目。, 因此,為什麼不使用一種...。
Custom Product Tabs for WooCommerce 》此外掛擴充了 WooCommerce 功能,允許商店擁有者針對產品添加自訂選項卡。這些選項卡顯示在每個產品頁面上,出現在預設的「描述」選項卡右側。, 個別產品選項...。