浩仔
浩仔
  • 发布:2022-07-28 23:10
  • 更新:2022-11-15 17:48
  • 阅读:515

苹果内购调用支付请求没有任何响应

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Mac

PC开发环境操作系统版本号: 12.4

HBuilderX类型: Alpha

HBuilderX版本号: 3.5.2

手机系统: iOS

手机系统版本号: iOS 15

手机厂商: 苹果

手机机型: 12mini

页面类型: vue

vue版本: vue2

打包方式: 云端

项目创建方式: HBuilderX

示例代码:

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('支付失败');
}
})

操作步骤:

预期结果:

能成功调起苹果支付

实际结果:

没有任何响应

bug描述:

苹果内购支付,在获取到channel的情况下,调用uni.requestPayment()方法没有任何反应,不能调起苹果支付

2022-07-28 23:10 负责人:无 分享
已邀请:
DCloud_uniAD_HDX

DCloud_uniAD_HDX

是否为沙箱环境。这个过程取决于网络,等了多久没有反应的?

  • 6***@qq.com

    等了半小时以上,没任何反应

    2022-11-14 16:18

DCloud_uniAD_HDX

DCloud_uniAD_HDX

检查手机设置,登陆的内购测试账号是否正常

要回复问题请先登录注册