if(payname=='appleiap'){
var IAPOrders = ['PrepaidRefill001'];
payType.requestOrder(IAPOrders, function(event) {
var OrderItem =null;
for(var index in event) {
OrderItem = event[index];
alert("Title:" OrderItem.title "Price:" OrderItem.price "Description:" OrderItem.description "ProductID:" OrderItem.productid);
}
data={
"productid": OrderItem.productid,
"username": "appusername",
"quantity": 1
}
plus.payment.request(payType, data, function(result) {
console.log(JSON.stringify(result));
var list = plus.webview.getLaunchWebview(); //触发父页面的自定义事件(refresh),从而进行刷新
mui.fire(list, 'fresh');
//mui.alert(JSON.stringify(result));
mui.alert("付费成功");
}, function(e) {
console.log(JSON.stringify(e));
// mui.alert(JSON.stringify(e.message));
mui.alert("付费失败");
});
}, function(errormsg) {
console.log("获取支付通道失败:" JSON.stringify(errormsg));
});
return;
}
执行结果: 获取支付通道失败:{"message":"Payment_appleiap:返回订单信息失败,http://ask.dcloud.net.cn/article/282","code":-100}
请问下这个问题要如何解决。