DefaultGatewayClient class

Default GatewayClient implementation backed by a provider-neutral GatewayTransport.

Responsibilities:

Non-responsibilities:

  • URL construction (the path is appended to GatewayConfig.backendBaseUrl verbatim; the POS owns the URL shape),
  • response field interpretation beyond GatewayHandoffResponse (any processor-specific fields the backend returns reach the POS through its own backend call, not the SDK).
Implemented types

Constructors

DefaultGatewayClient({required GatewayConfig config, required GatewayTransport transport, String path = '/transactions'})

Properties

config → GatewayConfig
final
hashCode → int
The hash code for this object.
no setterinherited
path → String
Path appended to GatewayConfig.backendBaseUrl for the POST. The POS can override this when building the client through a custom factory.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
transport → GatewayTransport
final

Methods

close() → Future<void>
Release any resources the client holds (sockets, queues). Idempotent and safe to call concurrently with an in-flight send.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(GatewayTransactionRequest request) → Future<GatewayHandoffResponse>
Send request and return a GatewayHandoffResponse. Throws GatewayError for any transport-level failure.
override
toString() → String
A string representation of this object.
inherited

Operators

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