Terminal class
Terminal deals with the registration of both the apps. pos app and the ttp app.
Constructors
- Terminal({DeviceHandler? terminalInfo, PINAppIntent? pinAppIntent, HttpService? httpService})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deletettpApp(
) → void - Clears the ttp app at the time of logging out from your pos app. so that it can registerd against new merchant or pos app.
-
isPinAppInstalled(
) → Future< bool> - Returns true if the Pin Add-on is installed in the device
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerTerminal(
Stream< AppLifecycleState> appLifecycleStream) → Future<String> -
Returns
terminalIdof the pos app. which will be used to create order. AppLifecycleState has to be passed as stream to complete the TTP integration. -
setTerminalId(
String terminalId) → dynamic - Sets the terminalId, has to be called after the terminal registration process.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited