提交 e51d51ea 作者: 李泽奇

支付结果增加回调

上级 05f18316
# 游戏 SDK 对接文档-v1.3.0
# 游戏 SDK 对接文档-v1.3.0
......@@ -874,6 +874,7 @@ zwsdk.createOrder(config:Object)
> | loadingParams | false | Object | - | showLoading 为 true 时生效。与[微信小程序 showLoading](https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html) 参数一致 |
> | showToast | false | Boolean | false | 异步请求失败,是否显示微信小程序消息提示框 <br>异步请求成功,若要显示消息提示,需主动调用微信小程序消息提示框框 |
> | toastParams | false | Object | - | showLoading 为 true 时生效。与[微信小程序 showToast](https://developers.weixin.qq.com/minigame/dev/api/ui/interaction/wx.showToast.html) 参数一致 |
> | payReponse | false | Function | - | 支付结果回调函数,若拉起支付成功返回{ msg: 'success' },若拉起支付失败返回{ msg: 'error' } |
##### 返回参数
......@@ -908,6 +909,9 @@ zwsdk
role_name: '',
role_level: '0',
role_vip: '0'
},
payReponse: (res) => {
console.log('payReponse:', res.msg === 'success' ? '拉起支付成功' : '拉起支付失败' )
}
})
.then((res) => {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论