Uamy
Uamy
  • 发布:2022-03-01 11:37
  • 更新:2022-03-01 11:46
  • 阅读:804

ios内购 返回订单信息失败

分类:uni-app
onLoad() {  
    plus.payment.getChannels((channels) => {  
        for (let item of channels) {  
            if (item.id == 'appleiap') {  
                this.iap = item  
                this.requestOrder()//获取订单信息  
            }  

    })  
},  
methods:{  
      requestOrder() {  
        uni.showLoading({  
            title: '检测支付环境...'  
        })  
        this.iap.requestOrder(['product_id01'], (res) => {  
            console.log(JSON.stringify(res));  
            uni.hideLoading();  
        }, (err) => {  
            console.log(JSON.stringify(err));  
            uni.hideLoading();  
        })  
    }  
}

{"code":-100,"message":"Payment_appleiap:返回订单信息失败,https://ask.dcloud.net.cn/article/282"}

测试包ID 和 苹果申请内购的ID 是一样的确认了很多次

求助大佬 还有什么原因导致

2022-03-01 11:37 负责人:无 分享
已邀请:
FullStack

FullStack - 【插件开发】【专治疑难杂症】【ios上架、马甲包、白包、过审、已成功上架过几百个】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=22130】【非诚勿扰】QQ:543610866

沙箱测试

使用的第三方SDK内部错误

该问题目前已经被锁定, 无法添加新回复