diff --git a/docs/app-payment-alipay.md b/docs/app-payment-alipay.md index 7826c6793d0320a7dc526b151625ef438d79f7d6..83a94e46425bf00facc921828c75f7b67702a645 100644 --- a/docs/app-payment-alipay.md +++ b/docs/app-payment-alipay.md @@ -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)); }); ``` diff --git a/docs/app-payment-weixin.md b/docs/app-payment-weixin.md index 2f91a9a30059fe91b16cbb65122e61a08151b796..2133f741002209b3fcee9e1b6cc602a6282e6f0a 100644 --- a/docs/app-payment-weixin.md +++ b/docs/app-payment-weixin.md @@ -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)); }); ```