1.0.1 • Published 4 years ago

cordova-plugin-alirpverify v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

title: AliRPVerify

description: 阿里实人认证插件.

cordova-plugin-alirpverify

安装

通过 Cordova CLI 从npm安装:

` $ cordova plugin add cordova-plugin-alirpverify $ cordova prepare `

支持平台

  • Android 4.0.0

config.xml

方法

  • AliRPVerify.rpVerifyinit
  • AliRPVerify.start

AliRPVerify.rpVerifyinit

初始化SDK

`js AliRPVerify.rpVerifyinit(text, success, fail); `

ThsToast.show

开始实名认证

`js AliRPVerify.start(text, success, fail); `

  • text String tokn
  • success callback 成功回调 返回显示文字
  • fail callback 失败回调 返回错误码