Installation
Requirements
Android: API version 21 or higher
You need to set the
compileSdkVersion
to 34 in theandroid/app/build.gradle
file.
iOS: Version 13.0 or higher
Update the
platform
: iOS version to 13.0 in your Flutter project’sios/Podfile
, and verify and modify theios/Podfile
as needed.
Installation
The Wepin Flutter PIN Pad Libary is published on pub.dev, and you can install it by adding the following command or by adding a dependency in your app's pubspec.yaml
.
Add using Flutter pub add command:
$ flutter pub add wepin_flutter_pin_pad
Add to dependencies in
pubspec.yaml
:
dependencies:
wepin_flutter_pin_pad: ^0.0.1
Once the installation is complete, initialize the WepinPinPad instance using the app ID and app key assigned after registering the app. This will enable the use of WepinPinPad.
// 1. Package import
import 'package:wepin_flutter_pin_pad/wepin_flutter_pin_pad.dart';
import 'package:wepin_flutter_pin_pad/wepin_flutter_pin_pad_types.dart';
// 2. Instance Initialization
WepinPinPad wepinPinPad = WepinPinPad(wepinAppKey: wepinAppKey, wepinAppId: wepinAppId);
Last updated
Was this helpful?