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

POS Terminal Communication Module A comprehensive library for interfacing with POS terminals, enabling seamless communication for payment processing and other business operations.

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 smena = await posModule.createService(
      clientId: '01',
      operationServiceType: OperationServiceType.CHECK_SUM,
      idempotenceKeyERN: '01234567');
  final paymentCreation = await posModule.createPayment(
      amount: 1.5, clientId: '123456', idempotenceKeyERN: '228');

  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!);
  await posModule.disconnect();
}
6
likes
0
points
52
downloads

Publisher

unverified uploader

Weekly Downloads

POS Terminal Communication Module A comprehensive library for interfacing with POS terminals, enabling seamless communication for payment processing and other business operations.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on pos_payment_terminal