WF开放平台

API 一览

SDK:https://lm.msdiwlkj.cn/shell-apps/wf.js

环境

WF.inApp()是否在 WF APP 内

开放能力

WF.login登录授权
WF.getUserProfile同登录,取用户资料
WF.requestPayment / WF.pay支付
WF.withdrawToWallet / WF.withdraw提现到零钱
WF.openCustomerServiceChat打开客服
WF.shareAppMessage / WF.share分享

wx 兼容

在 APP 内已对以下接口做桥接:wx.login wx.getUserProfile wx.requestPayment wx.openCustomerServiceChat

完整示例

<script src="https://lm.msdiwlkj.cn/shell-apps/wf.js"></script>
<script>
WF.login({ success: function(u){ console.log(u) } })
WF.requestPayment({ amount: 0.01, title: '测试' })
WF.withdrawToWallet({ amount: 0.01, title: '测试提现' })
WF.openCustomerServiceChat({})
WF.shareAppMessage({ title: '分享', path: location.href })
</script>

演示页:pay-demo.html(须在 APP 内打开)