请问青蛙pro 小程序 刷脸支付获取不到faceCode?
wxfaceapp.facePay({
requireFaceCode: true,//是否需要获取付款码返回给小程序
success(res){
console.log("success [launchFaceApp]")
console.log(res.replyCode)
console.log(res.reply)
//刷脸成功Event 建议配合facePay的调用结果进行注册
wxfaceapp.onFacePayPassEvent(function (res) {
console.log("onFacePayPassEvent retCode = " + res.replyCode)
})
},
fail(res) {
console.log("fail [launchFaceApp]")
console.log(res.replyCode)
console.log(res.reply)
}
})
微信刷脸支付已经开通了;
{"replyCode":"0","reply":"face pay finished"} --onFacePayPassEvent打印结果
--
2019-12-09 16:38:05 {"errMsg":"facePay:ok","replyCode":"0","reply":"calling success"} --facePay打印结果
--
你 需要把整个流程代码写完。青蛙小程序 - 特殊API接口 | 微信刷脸支付 https://pay.weixin.qq.com/wiki/doc/wxfacepay/develop/miniprogram-api.html#_4-1-%E5%90%AF%E5%8A%A8%E5%88%B7%E8%84%B8%E6%94%AF%E4%BB%98-facepay