diff --git a/docs/api/plugins/payment.md b/docs/api/plugins/payment.md index 5138befe3454f376692a87dcc756d29544262139..8a914718417ae257c3b544856f2eafe587a8dacf 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 //根据业务需求透传参数,关联用户和订单关系 });