Git Product home page Git Product logo

wechat_face_payment's Introduction

wechat_face_payment

pub package GitHub Stars Platform

微信刷脸支付、刷脸认证、扫码支持等 Flutter 插件。

说明

该插件目前官方只提供了 Android SDK 和 Windows SDK 的文档,未提供IOS SDK 的文档,所以 wechat_face_payment 插件目前仅支持 Android 设备使用

功能

刷脸支付

  • 该流程通过识别用户人脸、手机号,获取人脸凭证(face_code),该人脸凭证具有较高的安全等级,可用于支付。

人脸识别

  • 人脸识别通过识别用户人脸,获取用户信息(openid)。
  • 此功能常用于商户会员、商品推荐等场景, 此流程无法用于支付。
  • FACEID-ONCE为直接启动人脸识别流程。

实名认证

  • 该流程首先通过识别用户人脸、手机号,向商户返回face_sid , 商户根据 face_sid 进行用户是否已认证的判断;对于未认证的用户,可根据 face_sid 向微信后台请求进行实名认证。对于已认证的用户,可直接调用接口关闭实名认证。
  • 该能力目前仅针对医院行业开放申请。

扫码功能

  • 对于使用微信人脸sdk的支付设备,我们提供对外接口,可以在启动摄像头进行扫码,当微信人脸sdk扫码成功后,会通知扫码结果给商户APP,扫码成功间隔3000ms。

更多相关信息请查看微信刷脸支付官网

安装

1、添加依赖

将此添加到项目的 pubspec.yaml 文件中:

 dependencies:
   wechat_face_payment: 
      git:
        url:git://github.com/hqwlkj/wechat_face_payment.git

或者

 dependencies:
   wechat_face_payment: version

查看最新的版本

2、安装

您可以从命令行安装软件包:

使用Flutter:

 $ flutter pub get

或者,您的编辑器可能支持flutter pub get。 查看您的编辑器文档以了解更多信息。

3、使用

在Dart代码中,您可以使用:

import 'package:wechat_face_payment/wechat_face_payment.dart';

wechat_face_payment's People

Contributors

hqwlkj avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.