IOS 内购 苹果Windows 申请证书和上架
- IOS 支付
onLoad() {
let that = this
console.log('查看支付通道')
plus.payment.getChannels((channels) => {
console.log('判断是否是苹果支付', channels)
for (var i in channels) {
// 判断是否苹果支付
if (channels[i].id === 'appleiap') {
that.iapChannel = channels[i]
console.log('判断是否是苹果支付赋值', that.iapChannel)
// that.requestOrder()
}
}
})
},
methods:{
requestOrder() {
const that = this
// ['xxxxx'] 是平台申请拿到的内购商品的id
console.log('苹果支付', that.iapChannel)
that