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

调整uni-virtualPayment 页面示例。

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