使用uniapp上支付教程代码:
plus.payment.getChannels((channels) => {
console.log("获取到channel" + JSON.stringify(channels))
for (var i in channels) {
var channel = channels[i];
if (channel.id === 'appleiap') {
iapChannel = channel;
this.requestOrder();
}
}
if (!iapChannel) {
}
}, (error) => {
console.log(error)
});
mainifest.json,只配置了apple支付,微信和支付宝支付都没有选择。
采用“运行-》运行到手机或者模拟器-》制作自定义调试基座”,在ios测试机上运行基座,打印结果显示:
获取到channel[{"id":"alipay","description":"支付宝","serviceReady":true},{"id":"wxpay","description":"微信","serviceReady":true}]
问题是缺少appleiap支付通道,请问如何解决?