提交 ce408716 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817

调整uni-virtualPayment 页面示例。

上级 0b2bad63
...@@ -201,15 +201,16 @@ ...@@ -201,15 +201,16 @@
success: (res) => { success: (res) => {
uni.hideLoading() uni.hideLoading()
console.log("获取未结束的订单列表个数:" + res.transactions.length) console.log("获取未结束的订单列表个数:" + res.transactions.length)
uni.showToast({
title: "获取未结束的订单列表个数:" + res.transactions.length,
icon: 'success'
})
res.transactions.forEach(transaction => { res.transactions.forEach(transaction => {
console.log("getUnfinishedTransactions成功的交易productId= " + transaction.productId) console.log("getUnfinishedTransactions成功的交易productId= " + transaction.productId)
//TODO: 开发者server验证逻辑 //TODO: 开发者server验证逻辑
uni.showToast({
title: "获取未结束的订单列表个数:" + res.transactions.length,
icon: 'success'
})
//经过开发者server验证成功后请结束该交易 //经过开发者server验证成功后请结束该交易
this.virtualPaymentContext.finishTransaction({ this.virtualPaymentContext.finishTransaction({
transaction: transaction, transaction: transaction,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册