# Brush Face Payment
This function only works on WeChat Pay certified devices., Detailed documentation can beRefer here。
We can access the mini program on the device that swipes the face to pay, so that the device can better connect to WeChat and get more possibilities.
# Mini Program end
# wx.login
First leave face login, if failure, log in by QR code.
# Brush Face Payment
# wmpf.wxFacePay.facePay
wmpf.wxFacePay.facePay({
success: res=> {
console.log(res)
},
fail: res=> {
console.log(res)
}
})
# Get Debit Code Token
# wmpf.wxFacePay.getFaceCode
wmpf.wxFacePay.getFaceCode({
success: res => {
console.log(res)
},
fail: res=> {
console.log(res)
}
})
# Client end
# ActivateDeviceByIoT
The payment device needs to be first approved by the IOT Way to activate the device.
# InitWxFacePayInfo
The payment device is then pre-injected with face login and payment related information.
# AuthorizeByWxFacePay
Finally, the face login is realized, and then there will be a login state when you run Mini Program.