viva_wallet_pos 0.0.8+3 viva_wallet_pos: ^0.0.8+3 copied to clipboard
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 Terminal.
You can download POS app from the official Google Play Store
For demo acces you must use demo version of Viva.com Terminal App. Contact Viva.com for demo access. For now, only works on Android.
Feel free to add your contribution to this project on github.
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 sale:
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());
}
Sample ISV sale:
import 'package:viva_wallet_pos/viva_wallet_pos.dart';
VivaWalletPos pos = VivaWalletpos();
try {
final response = await pos.isvSale(
amount: 10.0,
tipAmount: 0.2,
isvAmount: 0.1,
clientTransactionId: 'CLIENT_TRANS_ID',
isvClientId: 'ISV_CLIENT_ID',
isvClientSecret: 'ISV_CLIENT_SECRET',
isvMerchantId: 'ISV_MERCHANT_ID',
isvClientTransactionId: 'ISV_CLIENT_TRANS_ID',
);
_resultMessage(response.message);
} catch (e) {
debugPrint(e.toString());
}
Supported methods #
- ✅ activatePos
- ✅ getActivationCode
- ✅ setMode
- ✅ setDecimalAmountMode
- ✅ resetTerminal
- ✅ batch
- ✅ transactionDetails
- ✅ fastRefund
- ✅ setPrintingSettings
- ✅ reprintTransaction
- ✅ sendLogs
- ✅ sale
- ✅ isvSale (new thanks to jousis9 see https://github.com/drigler/viva_wallet_pos/pull/1)
- ✅ cancel
- ✅ abort
Unsupported methods - work in progress #
- ❌ preauth request
- ❌ capture pre-auth request
- ❌ rebate request
Copyright
All trademarks, logos and brand names are the property of their respective owners. Use of these names,trademarks and brands does not imply endorsement.