mobile_pos 0.9.0 copy "mobile_pos: ^0.9.0" to clipboard
mobile_pos: ^0.9.0 copied to clipboard

A Flutter plugin for Raven Bank's Mobile POS (BankBox) device.

Raven Bank Mobile POS (BankBox) Flutter Plugin #

A Flutter Plugin that enables you connect to Raven Bank’s Bank Box

Prerequisites #

Credentials #

First you need to obtain your app credentials from here

Android Setup #

Set minSdkVersion target #

This library targets android devices >= SDK 21. Make sure you're targeting at-least the same by modifying your android/app/build.gradle file

minSdkVersion = 21

IOS Setup #

Update Info.plist to add neccessary permissions #

  <key>NSBluetoothAlwaysUsageDescription</key>
  <string>allow app use bluetooth</string> 
  <key>NSBluetoothPeripheralUsageDescription</key>
  <string>allow app use bluetooth</string> 
  <key>NSCameraUsageDescription</key>
  <string>Can I use the camera please?</string>

Usage #

Import #

import 'package:mobile_pos/mobile_pos_sdk.dart';

Launch SDK #

  await RavenBankBoxPlugin.launch(context,
                      config: BankBoxConfig(
                          onClose: () {
                            //user taps close button
                            Navigator.pop(context);
                          },
                          showLabel: true,
                          theme: const MobilePOSTheme(
                              headerTextColor: Color(0xFF755AE2),
                              primaryColor: Color(0xFF755AE2),
                              onPrimary: Colors.white,
                              secondaryColor: Color(0xFFEA872D)),
                          enviroment: BankBoxEnviroment.staging,
                          appInfo: AppInfo(
                              appName: '<YOUR APP LABEL>',
                              appId: '<YOUR APP ID>',
                              appEmail: '<YOUR APP EMAIL>'),
                          customerInfo: CustomerInfo(
                            lastName: 'Raven',
                            firstName: 'Raven',
                            bvn: '<USER BVN>',
                            email: '<USER EMAIL>',
                            phone: '<USER PHONE NUMBER>',
                          ),
                          onSuccess: (data) {
                            print(data);
                          },
                          onError: (error) {
                            print(error.message);
                          }));
4
likes
120
pub points
70%
popularity

Publisher

unverified uploader

A Flutter plugin for Raven Bank's Mobile POS (BankBox) device.

Homepage

Documentation

API reference

License

unknown (license)

Dependencies

flutter, flutter_aes_ecb_pkcs5, gap, http, intl, pinput, plugin_platform_interface, pretty_qr_code, ripple_wave, share_plus

More

Packages that depend on mobile_pos