[WordPress] 外掛分享: Payment Gateway for M-PESA Open API on WooCommerce

首頁外掛目錄 › Payment Gateway for M-PESA Open API on WooCommerce
WordPress 外掛 Payment Gateway for M-PESA Open API on WooCommerce 的封面圖片
30+
安裝啟用
尚無評分
332 天前
最後更新
問題解決
WordPress 2.2+ v1.0.0 上架:2022-08-19

內容簡介

這個外掛讓顧客能夠在安裝了 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] 請求。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Payment Gateway for M-PESA Open API on WooCommerce」→ 直接安裝(推薦)

原文外掛簡介

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.

延伸相關外掛

文章
Filter
Mastodon