TerminalClient class

It provides methods that mirror endpoints provided by Paystack's Terminal API which allows you to build delightful in-person payment experiences.

Inheritance

Constructors

TerminalClient.new({String? secretKey})
Create an instance of TerminalClient.

Properties

baseUrl String
no setterinherited
client ↔ Client
getter/setter pairinherited
dataAsListKey String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

all({int perPage = 50, int? next, int? previous}) Future<Response>
Retrieve the list of terminals available on your integration
call(Uri url, HttpMethod method, {NativeJsonData? data, bool dataAsList = false}) Future<Response>
inherited
commission(String serialNumber) Future<Response>
Activate your debug device by linking it to your integration
decommission(String serialNumber) Future<Response>
Unlink your debug device from your integration
eventStatus(String terminalId, String eventId) Future<Response>
Check the status of an event sent to the Terminal
fetchOne(String terminalId) Future<Response>
Retrieve a single terminal on your integration by its id
normalizeQueryParameters(Map<String, dynamic> queryParameters) Map<String, dynamic>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendEvent(String terminalId, TerminalEvent type, TerminalAction action, TerminalData data) Future<Response>
Send an event from your application to the Paystack Terminal
terminalStatus(String terminalId) Future<Response>
Check the availability of a Terminal before sending an event to it
toString() String
A string representation of this object.
inherited
update(String terminalId, {String? name, String? address}) Future<Response>
Update the detail on a terminal

Operators

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