微信小程序接入支付说明
微信小程序支付说明
微信支付
请求收银台订单创建接口 得到 order_no 系统订单号
利用微信小程序拉起收银台小程序支付
拉起收银台小程序信息
appid 为 wx69e18b65ca417b00
path路径为/pages/app/pay?source=WECHATMINI&orderno={$order_no}
$order_no即为下单app支付时得到的系统订单号
source 为设备来源 默认为APP 小程序支付时传 WECHATMINI
用户跳转至小程序支付后 支付成功/失败 会通过异步接口通知到贵公司
建议使用订单查询接口 处理小程序端用户返回后查询该笔订单是否支付成功
[微信文档-拉起小程序](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/openEmbeddedMiniProgram.html#半屏小程序环境判断)
以下代码为微信小程序跳转至收银台小程序支付示例
wx.navigateToMiniProgram({
appId: 'wx69e18b65ca417b00',
path: '/pages/app/pay?source=WECHATMINI&orderno={$order_no}',
envVersion: 'release',
success(res) {
// 打开成功
},
fail(err){
// 打开失败
}
})