xpay✦ Commerce
Directory
WooCommerce plugins
Wenprise WeChatPay Payment Gateway For WooCommerce
Wenprise WeChatPay Payment Gateway For WooCommerce
WeChat payment gateway for WooCommerce, WooCommerce 微信免费全功能支付网关。
5.0
(2 ratings)Will this break my store?
What the WordPress.org registry says about keeping Wenprise WeChatPay Payment Gateway For WooCommerce running.
Tested to 6.9.5 — 1 branch behind 7.0
Tested against the WordPress branch in use today.2 months ago
At least 2.2 releases a year since launch. WordPress.org only lists versions still available for download, so the real number may be higher.7.4
Your host must be running at least this version.4.7
1
A single maintainer. Worth knowing if the plugin is load-bearing for your store.Maintenance & trust
Scored on how Wenprise WeChatPay Payment Gateway For WooCommerce is looked after — not on how many stores run it.
Maintenance
35 / 35WordPress compatibility
14 / 20Support responsiveness
Not enough dataMerchant satisfaction
11 / 15Listing transparency
3 / 10Ratings
5.0
2 ratings功能更全面的 WooCommerce 免费微信支付网关,企业版,需要微信企业认证才可以使用。支持功能如下:
- 支持所有 WooCommerce 产品类型
- PC 端扫描二维码支付
- 移动端浏览器 H5 调起微信支付
- 微信端公众号支付,需要安装微信登录插件,设置 open_id
- 支持作为小程序付款后端使用
- 在 WooCommerce 订单中直接通过微信退款,退款原路返回
- 货币不是人民币时,可以设置一个固定汇率
- 兼容 Wenprise Security 登录插件
- 兼容讯虎登录插件
- 支持区块结账页面
- 支持高性能存储
在微信小程序中使用
本插件支持小程序支付,具体使用方法请参考下面的示例项目。
插件设置方法及使用教程
Wenprise WeChatPay Payment Gateway For WooCommerce 微信支付插件设置教程
付费设置服务
如果你不想自己动手设置,或者自己设置有困难,可以购买我们的付费设置服务。
WooCommerce微信支付插件设置服务
WordPress插件定制开发服务
我们还提供 WordPress 定制开发服务,有需要的朋友可通过下面的页面联系我们。
支付宝支付网关
Wenprise Alipay Payment Gateway For WooCommerce
Support 技术支持
Email: amos@wpcio.com
在微信公众号中,需要获取 open_id 才能使用此插件进行支付,如果您的网站已经实现了微信公众号授权登录,请参考下一个问题中的代码进行兼容。
如果已经使用了其他微信登录插件,可以通过wprs_wc_wechat_open_id 这个 Filter 来修改支付插件使用的 open_id,修改下面代码中获取 open_id 的代码为对应登录插件中的代码即可。
add_filter('wprs_wc_wechat_open_id', function(){
$open_id = ''; //需要自行获取其他微信登录插件中记录的 openid
return $open_id;
});
在小程序中,发送请求到url:/wc-api/wprs-wc-wechatpay-mini-app-login
wx.login({
success(res) {
if (res.code) {
wx.request({
url : config.getRootUrl + ‘/wc-api/wprs-wc-wechatpay-mini-app-login’,
data: {
code: res.code,
},
success(res) {
// 保存小程序登录信息
wx.setStorageSync('open_id', res.data.data.openid);
// 请求支付插件获取支付信息
wx.request({
url : config.getRootUrl + 'wc-api/wprs-wc-wechatpay-mini-app-bridge',
method: 'POST',
data : {
open_id : res.data.data.openid,
from : 'mini_app',
order_id: payData.order_id,
},
success(res) {
var payment_data = res.data.data;
// 发送支付请求,在小程序中调起支付
wx.requestPayment({
timeStamp: payment_data.timeStamp,
nonceStr : payment_data.nonceStr,
package : decodeURIComponent(payment_data.package),
signType : 'MD5',
paySign : payment_data.paySign,
success(res) {
console.log('支付成功', res);
// 支付成功以后,再跳回webview页,并把支付成功状态传回去
wx.navigateTo({
url: '../webview/webview?src=' + encodeURI(payment_data.return_url),
});
},
fail(res) {
console.log('支付失败', res);
},
});
},
});
},
});
} else {
console.log('登录失败!' + res.errMsg);
}
},
});
Categories
Plugin details
Tags on WordPress.org
