全民付综合支付功能
模块名:ums_pay
placeOrder (params, callback)
订单下单
入参说明
params参数说明
| 属性 | 说明 |
|---|---|
| instMid | String类型,商户机构号 |
| merOrderId | String类型,商户订单号 |
| mid | String类型,商户号 |
| tid | String类型,终端号 |
| msgSrc | String类型,消息来源 |
| requestTimestamp | String类型,格式:yyyy-MM-dd HH : mm: ss |
| totalAmount | String类型,交易金额,单位:分 |
| url | String类型,下单请求后台接口地址 |
| payType | String类型,支付类型 |
可选支付类型
参数payType,可选类型包括以下四种:
| 类型 | 说明 |
|---|---|
| 微信支付 | |
| alipay | 支付宝支付 |
| alipay_mini | 支付宝小程序页面支付 |
| cloud_quick_pay | 云闪付支付 |
| 属性 | 说明 |
|---|---|
| mMd5SecretKey | String类型 |
| tradeType | String类型 |
| signType | String类型 |
| secureTransaction | Boolean类型 |
| srcReserve | String类型 |
| msgId | String类型 |
| msgType | String类型 |
| subAppId | String类型 |
| divisionFlag | Boolean类型 |
| platformAmount | String类型 |
| suborders | String类型 |
| mobile | String类型 |
| orderSource | String类型 |
| merchantUserId | String类型 |
callback结果回调说明
ret.result:表示获取是否成功,如果成功返回”success”;
ret.appPayRequest:String类型,用于订单支付参数
调用示例
moduleName. placeOrder ({
merOrderId: this.merOderId,mid: this.mid,tid: this.tid,msgSrc: this.msgSrc,
totalAmount: this.totalAmount,secureTransation: this.secureTransation,
srcReserve: this.srcReserve,url: this.src,payType: this.payType,mobile: this.mobile,
instMid: this.instMid,mMd5SecretKey: this.mMd5SecretKey
}, ret => {
// 回调结果
console.log(JSON.stringify(ret));
});
模块名:ums_pay
pay (params, callback)
订单支付
入参说明
params参数说明
| 属性 | 说明 |
|---|---|
| appPayRequest | String类型,支付请求参数 |
| payType | String类型,支付类型 |
可选支付类型
参数payType,可选类型包括以下四种:
| 类型 | 说明 |
|---|---|
| 微信支付 | |
| alipay | 支付宝支付 |
| alipay_mini | 支付宝小程序页面支付 |
| cloud_quick_pay | 云闪付支付 |
调用示例
moduleName. placeOrder ({
payType: this.payType,
appPayRequest: this.appPayRequest
}, ret => {
// 回调结果
console.log(JSON.stringify(ret));
});
备注
订单支付结果以后台查询到的结果为准