littlefish_payments_pos_tps
A Flutter package to enable communication with the Littlefish Pay TPS plugin for payment terminal integration. This package provides a POS gateway for processing transactions, managing batches, and printing receipts on TPS payment terminals.
Features
- Process purchase, refund, withdrawal, and cashback transactions
- Retrieve terminal information
- Close and reprint batches
- Print payment and batch receipts
- Update device parameters
Getting started
Add this to your pubspec.yaml:
dependencies:
littlefish_payments_pos_tps: ^0.0.1
Then run:
flutter pub get
Usage
Import the package and use the provided POS gateway:
import 'package:littlefish_payments_pos_tps/littlefish_payments_pos_tps.dart';
final gateway = TpsPosPaymentGateway('your.package.name');
// Example: Process a purchase
final result = await gateway.processPurchase(
businessId: 'biz123',
merchantId: 'merch456',
amount: 100.00,
isoCurrencyCode: 'ZAR',
transactionId: 'txn789',
reference: 'ref001',
);
See the API documentation and example app for more details.
Additional information
- Requires the Littlefish Pay TPS SDK plugin and compatible TPS payment terminal hardware
- For more information, visit littlefishapp.com
- For issues and contributions, please contact the maintainers or open an issue in the repository
Delete test application
cd /path_to_android/Android/sdk/platform-tools
./adb uninstall com.tps.testlauncher
./adb uninstall com.littlefishapp.littlefish_pay_tps_sdk
./adb uninstall com.littlefishapp.littlefish_pay_tps_sdk_example
./adb uninstall global.sassai.tpsone.pax.dev