From 388f9e76bfb92588dded92cde2a1d15fe9d8a3cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E9=B1=BC=E4=BB=94?= Date: Tue, 16 Aug 2022 05:34:18 +0000 Subject: [PATCH] update docs/api/plugins/payment.md. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 章鱼仔 --- docs/api/plugins/payment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/plugins/payment.md b/docs/api/plugins/payment.md index 5138befe3..8a9147184 100644 --- a/docs/api/plugins/payment.md +++ b/docs/api/plugins/payment.md @@ -397,7 +397,7 @@ uni.requestPayment({ // 开发者业务逻辑,从服务器获取当前用户未完成的订单列表,和本地的比较 // 此处省略 - switch (transaction.transactionState) { + switch (transactions.transactionState) { case IapTransactionState.purchased: // 用户已付款,在此处请求开发者服务器,在服务器端请求苹果服务器验证票据 //let result = await this.validatePaymentResult(); @@ -441,7 +441,7 @@ uni.requestPayment({ // 请求苹果支付 const transaction = await this._iap.requestPayment({ - productId: this.productId, + productid: this.productId, // username: username + orderId //根据业务需求透传参数,关联用户和订单关系 }); -- Gitee