From 4c0933d201f013d8807ef2f8a88808a4b9d6e4b7 Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 28 Sep 2022 10:31:49 +0800 Subject: [PATCH] =?UTF-8?q?iap:=20=E7=A4=BA=E4=BE=8B=E4=BB=A3=E7=A0=81=20?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=B8=BA=E6=89=8B=E5=8A=A8=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E8=AE=A2=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/plugins/payment.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/plugins/payment.md b/docs/api/plugins/payment.md index 83a2428f3..c6481a4aa 100644 --- a/docs/api/plugins/payment.md +++ b/docs/api/plugins/payment.md @@ -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); -- GitLab