Title: Pay via ProxyAPI
Author: maxp555
Published: <strong>2020 年 2 月 20 日</strong>
Last modified: 2021 年 1 月 25 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/woo-pay-via-proxyapi/assets/icon-256x256.png?rev=2247346)

# Pay via ProxyAPI

 作者：[maxp555](https://profiles.wordpress.org/maxp555/)

[下载](https://downloads.wordpress.org/plugin/woo-pay-via-proxyapi.zip)

 * [详情](https://cn.wordpress.org/plugins/woo-pay-via-proxyapi/#description)
 * [评价](https://cn.wordpress.org/plugins/woo-pay-via-proxyapi/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/woo-pay-via-proxyapi/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/woo-pay-via-proxyapi/#developers)

 [支持](https://wordpress.org/support/plugin/woo-pay-via-proxyapi/)

## 描述

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](https://t.me/joinchat/I-jBHE2JnVFAfGpjWRgJbA)
or drop your query in the [Support Section](https://wordpress.org/support/plugin/woo-pay-via-proxyapi/).
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.

## 屏幕截图

[⌊How to view M-Pesa Transaction metadata tied to the order⌉⌊How to view M-Pesa 
Transaction metadata tied to the order⌉[

How to view M-Pesa Transaction metadata tied to the order

[⌊How to get M-Pesa Transaction ID for currently opened order⌉⌊How to get M-Pesa
Transaction ID for currently opened order⌉[

How to get M-Pesa Transaction ID for currently opened order

[⌊How to configure Pay via ProxyAPI⌉⌊How to configure Pay via ProxyAPI⌉[

How to configure Pay via ProxyAPI

[⌊M-Pesa reports tab showing latest received PVP LnM transaction requests on Proxy
API⌉⌊M-Pesa reports tab showing latest received PVP LnM transaction requests on 
Proxy API⌉[

M-Pesa reports tab showing latest received PVP LnM transaction requests on Proxy
API

## 安装

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 1. Download the plugin zip file 2. Login
to your WordPress Admin. Click on “Plugins > Add New” from the left hand menu. 3.
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. 4. 
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: 
1. Log into the portal at https://api.proxyapi.co.ke 2. Navigate to Shortcodes on
the main menu 3. Double click on the Shortcode you wish to use for PVP 4. Make sure
the “Use Shortcode for Pay via ProxyAPI” checkbox is selected and the settings saved
on selection. 5. 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.

## 常见问题

### What version of PHP is required for this plugin to work?

Use PHP v5.6 or later.

### Can someone on Daraja API use this plugin?

No, you need to be aboard ProxyAPI to be able to use this plugin.

### Does this plugin process M-Pesa callbacks?

Yes, the plugin is set up to directly receive callbacks from both Daraja and ProxyAPI
and process each separately for the same transaction

### Does this plugin have a separate M-Pesa transactions table?

No, the plugin places the transaction details directly as metadata into the order.
This enables for a simpler and more convenient way to view MPesa results. But in
case you need to check all transactions or get a separate list of transactions, 
you have access to the [ProxyAPI portal](https://api.proxyapi.co.ke/) where you 
get a list of all Pay via ProxyAPI transactions sent through it and their current
status (whether they were succesful or not).

### Does the plugin automatically complete transactions?

Yes, depending on the result received from Daraja or ProxyAPI. If a transaction 
returned a failed error code, the equivalent order is marked as failed too. If the
transaction was a success, the equivalent order will be assigned the MPesa Transaction
ID as its own unique Transaction ID and marked as complete.

### Where can I get the documentation on PVP or ProxyAPI?

[Proxy API Documentation](https://docs.proxyapi.co.ke/v1/)
 [Proxy API PVP Documentation](https://docs.proxyapi.co.ke/v1/#pvp)
[Proxy API Portal](https://api.proxyapi.co.ke/) [Proxy API Telegram Support Group](https://t.me/joinchat/I-jBHE2JnVFAfGpjWRgJbA)

## 评价

此插件暂无评价。

## 贡献者及开发者

「Pay via ProxyAPI」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ maxp555 ](https://profiles.wordpress.org/maxp555/)

[帮助将「Pay via ProxyAPI」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woo-pay-via-proxyapi)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/woo-pay-via-proxyapi/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/woo-pay-via-proxyapi/)，或通过[RSS](https://plugins.trac.wordpress.org/log/woo-pay-via-proxyapi/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/woo-pay-via-proxyapi/)。

## 更新日志

#### 2.2.7

 * Updated WC v4.9.1

#### 2.2.6

 * Increased MPesa Maximum Limit

#### 2.2.5

 * Updated WC v4.2.2

#### 2.2.4

 * Minor fixes

#### 2.2.3

 * Upgrade to WC v4.0.1
 * Minor fixes

#### 2.2.2

 * Fixed session bug

#### 2.2.1

 * Fixed changelog

#### 2.2.0

 * Added payment retry capability for failed orders

#### 2.1.0

 * Added Due date notification for admin

## 额外信息

 *  版本 **2.2.7**
 *  最后更新：**5 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **5.6.17**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/woo-pay-via-proxyapi/)
 * 标签
 * [Lipa na mpesa](https://cn.wordpress.org/plugins/tags/lipa-na-mpesa/)[MPESA](https://cn.wordpress.org/plugins/tags/mpesa/)
   [proxy](https://cn.wordpress.org/plugins/tags/proxy/)
 *  [高级视图](https://cn.wordpress.org/plugins/woo-pay-via-proxyapi/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/woo-pay-via-proxyapi/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/woo-pay-via-proxyapi/reviews/)

## 贡献者

 *   [ maxp555 ](https://profiles.wordpress.org/maxp555/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/woo-pay-via-proxyapi/)