uni.requestPayment({
provider: 'appleiap',
orderInfo: {
productid: this.currentAmount.id,
username: '',
manualFinishTransaction: true
},
success: (res) => {
console.log(this.orderInfo);
const data = {
'transaction-id': res.transactionIdentifier,
'receipt-data': res.transactionReceipt,
'order-id': this.orderInfo.id,
'type': applePayType
}
this.finishPay_apple(data, res);
},
fail: (err) => {
uni.hideLoading();
this.showToast('支付失败');
}
})

- 发布:2022-07-28 23:10
- 更新:2022-11-15 17:48
- 阅读:658
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.4
HBuilderX类型: Alpha
HBuilderX版本号: 3.5.2
手机系统: iOS
手机系统版本号: iOS 15
手机厂商: 苹果
手机机型: 12mini
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
无
无
预期结果:
能成功调起苹果支付
能成功调起苹果支付
实际结果:
没有任何响应
没有任何响应
bug描述:
苹果内购支付,在获取到channel的情况下,调用uni.requestPayment()方法没有任何反应,不能调起苹果支付
6***@qq.com
等了半小时以上,没任何反应
2022-11-14 16:18