yjy_viva_wallet_pos 0.0.2 copy "yjy_viva_wallet_pos: ^0.0.2" to clipboard
yjy_viva_wallet_pos: ^0.0.2 copied to clipboard

PlatformAndroid

This is a flutter plugin for Android integration with Viva Wallet POS.

Viva Wallet POS Flutter #

This is a flutter plugin for Android integration with Viva Wallet POS.

You can download POS app from: https://play.google.com/store/apps/details?id=com.vivawallet.spoc.payapp

For demo acces you must use demo version of Viva Wallet Pos App. Contact VivaWallet for demo access.

This is initial release and currently in testing.

For now, only works on Android.

Feel free to add your contribution to this project on github.

Installation #

Use this package as a library

  1. Depend on it Add this to your package's pubspec.yaml file:
dependencies:
  viva_wallet_pos: ^0.0.1
  1. Install it You can install packages from the command line:

with Flutter:

$ flutter packages get

Getting Started #

Using the library

Please se example project on how to use library basic functions.

Have a look at official developer page: https://developer.vivawallet.com/apis-for-point-of-sale/card-terminal-apps/android-app/

All the functions and parameter names in the plugin are same as in the official documentation.

Sample:

import 'package:viva_wallet_pos/viva_wallet_pos.dart';

VivaWalletPos pos = VivaWalletpos();

try {
      TransactionResponse response = await pos.sale(
        clientTransactionId: 'Invoice 1234',
        amount: 10.00,
        showRating: false,
        showReceipt: true,
        showTransactionResult: false,
      );
      _resultMessage(response.message);
    } catch (e) {
      debugPrint(e.toString());
}

Supported methods #

  • ✅ activatePos
  • ✅ setMode
  • ✅ setPrintingSettings
  • ✅ sendLogs
  • ✅ sale
  • ✅ cancel
  • ✅ abort
1
likes
125
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

This is a flutter plugin for Android integration with Viva Wallet POS.

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on yjy_viva_wallet_pos

Packages that implement yjy_viva_wallet_pos