hobex_hps library

hobex Payment Service (HPS) — typed client for the terminal's local REST API (http://127.0.0.1:8080 when the app runs on the terminal).

Bewusst getrennt vom alten, cloud-basierten Hobex (KasseneckApi.hobexPay / hobexRefund, die ueber Kasseneck-Cloud-Endpunkte gehen). Eigener Import, damit alt und neu sauber nebeneinander leben:

import 'package:kasseneck_api/hobex_hps.dart';

final hps = HpsClient(tid: '3600335');
final res = await hps.payment(amount: 1.00);

Classes

Diagnosis
Result of GET /api/terminals/{tid}/diagnosis — a health snapshot of the terminal and its connection to the hobex host.
HobexReceipt
HpsClient
Client for the local hobex Payment Service (HPS) REST API.
TransactionResponse
Result of a transaction request (payment, refund, pre-auth, capture, void, AVT) or of a transaction-status (v2) query.

Enums

Cvm
Cardholder Verification Method.
HpsTransactionType
Numeric transaction type as sent in the request body of the /api/transaction/payment route.

Exceptions / Errors

HpsConnectionException
Thrown when the HPS could not be reached at all (socket error, timeout, connection refused, …).
HpsException
Base class for all errors thrown by this package.
HpsHttpException
Thrown when the HPS responds with a non-2xx HTTP status code.