Flutter plugins such as WeChat face payment

wechat_face_payment

Flutter plugins such as WeChat face payment, face authentication, and code scanning support.

Description

The plugin currently only officially provides documentation for Android SDK and Windows SDK. In order to provide documentation for IOS SDK, the wechat_face_payment plugin currently only supports Android devices.

Features

Pay by face

  • This process obtains a face certificate (face_code) by recognizing the user’s face and mobile phone number, which has a higher security level and can be used for payment.

Face recognition

  • Face recognition obtains user information (openid) by identifying the user’s face.
  • This function is often used in scenarios such as merchant membership and product recommendation. This process cannot be used for payment.
  • FACEID-ONCE directly starts the face recognition process.

Verified

  • This process first returns face_sid to the merchant by identifying the user’s face and mobile phone number. The merchant judges whether the user has been authenticated based on the face_sid; for unauthenticated users, they can request real-name authentication from the WeChat backend based on the face_sid. For authenticated users, you can directly call the interface to turn off real-name authentication.
  • This ability is currently only open to applications for the hospital industry.

Scan code function

  • For payment devices that use the WeChat face sdk, we provide an external interface that can scan the code after starting the camera. When the WeChat face sdk is successfully scanned, the result of the scan will be notified to the merchant APP. The successful scan interval is 3000ms.

For more information, please check the official WeChat payment website

installation

1. Add dependencies

Add this to the project’s pubspec.yaml file:

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

2. Installation

You can install the package from the command line:

Use Flutter:

 $ flutter pub get

Or, your editor may support flutter pub get. Check your editor documentation for more information.

3. Use

In Dart code, you can use:

import 'package:wechat_face_payment/wechat_face_payment.dart';

Download Details:

Author: hqwlkj

Source Code: https://github.com/hqwlkj/wechat_face_payment

#flutter #dart #mobile-apps

Flutter plugins such as WeChat face payment
7.15 GEEK