# AuthorizeByWxFacePay
Face Login (Please enter the face login information first)
# Call parameter
No parameter
# Return parameters
attribute | Introductions |
---|---|
resultJson | Return face sdk Login results for |
# sample code
val request = WMPFAuthorizeByWxFacePayRequest()
request.baseRequest = WMPFBaseRequestHelper.checked()
val result = WMPFIPCInvoker.invokeAsync<IPCInvokerTask_AuthorizeByWxFacePay,
WMPFAuthorizeByWxFacePayRequest, WMPFAuthorizeByWxFacePayResponse>(
request,
IPCInvokerTask_AuthorizeByWxFacePay::class.java
) { response ->
if (isSuccess(response)) {
it.onSuccess(response)
} else {
it.onError(TaskErrorException(createTaskError(response)))
}
}
if (!result) {
it.onError(Exception("invoke authorizeByWxFacePay fail"))
}
# Common problem
- When calling an exception, check the face App Version is correct, and check the InitWxFacePayInfo Whether the entry is correct, such as appid、mchid Etc.
- Other see Authorize