HpsHttpException class

Thrown when the HPS responds with a non-2xx HTTP status code.

Common cases:

  • 400 — missing/invalid parameter, or transaction already cancelled/captured.
  • 403 — the requested feature is not activated for this account.
  • 404 — transaction not found, or endpoint not implemented.
  • 409 — ein anderer Vorgang laeuft noch, siehe terminalBusyStatusCode.
  • 503 — terminal not operable.
Inheritance

Constructors

HpsHttpException(int statusCode, String message, {String? body})

Properties

body String?
The raw response body, if any.
final
hashCode int
The hash code for this object.
no setterinherited
isNotFound bool
true, wenn dies der HTTP-Status aus notFoundStatusCode ist.
no setter
isTerminalBusy bool
true, wenn dies der gemessene "Terminal beschaeftigt"-Fall ist (terminalBusyStatusCode).
no setter
message String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The HTTP status code returned by the HPS.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

notFoundStatusCode → const int
HTTP 404 beim Abbruch. Am Testgeraet 3600335 (Firmware 7.3.6) kam dort immer HTTP 200 mit 0 bzw. 100010; am Produktivterminal 3556988 kam am 28.08.2026 in allen Faellen ein 404.
terminalBusyStatusCode → const int
HTTP 409 ("Terminal is busy", text/plain): das Terminal serialisiert und weist eine zweite Anfrage ab, waehrend eine erste noch laeuft.