提交 4c0933d2 编写于 作者: d-u-a's avatar d-u-a

iap: 示例代码 默认为手动关闭订单

上级 43094fe0
......@@ -442,6 +442,7 @@ uni.requestPayment({
// 请求苹果支付
const transaction = await this._iap.requestPayment({
productId: this.productId,
manualFinishTransaction: true,
// username: username + orderId //根据业务需求透传参数,关联用户和订单关系
});
......@@ -578,6 +579,7 @@ class Iap {
restoreCompletedTransactions(username) {
return new Promise((resolve, reject) => {
this._channel.restoreCompletedTransactions({
manualFinishTransaction: true,
username
}, (res) => {
resolve(res);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册