MethodChannelMyPos class

An implementation of MyPosPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMyPos()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

doSignature(String data, SamSlot samSlot, String pin, int timeoutMs) → Future<String?>
override
doSignatureWithoutSelection(String data, SamSlot samSlot, String pin, int timeoutMs) → Future<String?>
override
getCertificateSerialDec(SamSlot samSlot, int timeoutMs) → Future<String?>
override
getCertificateSerialHex(SamSlot samSlot, int timeoutMs) → Future<String?>
override
getCIN(SamSlot samSlot, int timeoutMs) → Future<String?>
override
makeGlassPayment({required double amount, required MyPosCurrency currency, bool printMerchantReceipt = true, bool printCustomerReceipt = true, String? eReceiptReceiver, String? reference}) → Future<PaymentResponseStatus>
override
makePayment({required double amount, required MyPosCurrency currency, bool printMerchantReceipt = true, bool printCustomerReceipt = true, bool fixedPinPad = false, bool giftCardTransaction = false, String? eReceiptReceiver, String? reference}) → Future<MyPosPaymentResponse>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
printPaper(MyPosPaper data) → Future<PrintResponse>
Printing never throws: a job that cannot start is reported as PrintResponse.failed.
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

getSamSlot(SamSlot samSlot) → int
glassStatusFrom(Object? res) → PaymentResponseStatus
paymentResponseFrom(Object? res) → MyPosPaymentResponse
Turns the native answer into a response: the result extras of the payment, or a status text (CANCEL, UNKNOWN) when there are none.
printResponseFrom(String? res) → PrintResponse