提交 52d05a16 编写于 作者: DCloud-yyl's avatar DCloud-yyl

update app-payment-alipay.md, app-payment-weixin.md

上级 ea945ada
......@@ -81,13 +81,13 @@ plus.payment.getChannels(function(channels){
}
//发起支付
plus.payment.request(alipaySev, orderInfo, function(result){
var rawdata = JSON.parse(result.rawdata);
console.log("支付成功");
var rawdata = JSON.parse(result.rawdata);
console.log("支付成功");
}, function(e){
console.log("支付失败:" + e.message);
console.log("支付失败:" + JSON.stringify(e));
});
}, function(e){
console.log("获取支付渠道失败:" + e.message);
console.log("获取支付渠道失败:" + JSON.stringify(e));
});
```
......@@ -108,13 +108,13 @@ plus.payment.getChannels(function(channels){
}
//发起支付
plus.payment.request(wxpaySev, orderInfo, function(result) {
var rawdata = JSON.parse(result.rawdata);
console.log("支付成功");
var rawdata = JSON.parse(result.rawdata);
console.log("支付成功");
}, function(e) {
console.log("支付失败:" + e.message);
console.log("支付失败:" + JSON.stringify(e));
});
}, function(e){
console.log("获取支付渠道失败:" + e.message);
console.log("获取支付渠道失败:" + JSON.stringify(e));
});
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册