pos_payment_terminal 1.0.1 copy "pos_payment_terminal: ^1.0.1" to clipboard
pos_payment_terminal: ^1.0.1 copied to clipboard

POS Terminal Communication Module A comprehensive library for interfacing with Point-of-Sale (POS) terminals, enabling seamless communication for payment processing and other business operations. Supp [...]

example/example.dart

import 'package:pos_payment_terminal/pos_payment_terminal.dart';

void main() async {
  final posModule = POSPaymentModule(ip: '10.0.0.104', port: 8888);
  await posModule.connect();

  final paymentCreation = await posModule.createPayment(
      amount: 1.5, clientId: '123456', idempotenceKeyERN: '228');
  final smena = await posModule.createService(
      clientId: '01',
      operationServiceType: OperationServiceType.CHECK_SUM,
      idempotenceKeyERN: '01234567');
  final test = await posModule.createService(
      clientId: '01',
      operationServiceType: OperationServiceType.CALL_APP_MENU,
      idempotenceKeyERN: '01234567');

  final refundCreation = await posModule.createRefund(
      amount: 5,
      clientId: '123456',
      idempotenceKeyERN: '228',
      retrievalReferenceNumber: paymentCreation.retrievalReferenceNumber!);
}
6
likes
0
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

POS Terminal Communication Module A comprehensive library for interfacing with Point-of-Sale (POS) terminals, enabling seamless communication for payment processing and other business operations. Supports various POS terminal protocols, providing a unified interface for developers to integrate terminal functionality into their applications.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on pos_payment_terminal