EghlSdk class

Constructors

EghlSdk.init({required String publicKeyPath, required String privateKeyPath, required String url, required String merchantID, required String terminalID})
Eghl Erc initialize function
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
merchantID String
Merchant ID setter
no getter
privateKey String
private key setter
no getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
terminalID String
Terminal ID setter
no getter

Methods

ecrLastSettlement() Future<EghlResponseModel<EghlResponseMessageBaseModel>>
Ecr last settlement function will notify Eghl terminal to get last settlement
ecrRefund({required double amount, String? operatorID, String? orgTxnRef, String? customField, String? txnTraceID, String? productCode}) Future<EghlResponseModel<EghlResponseMessageBaseModel>>
Ecr refund function in Eghl
ecrSale({required double amount, String? operatorID, String? customField}) Future<EghlResponseModel<EghlResponseMessageBaseModel>>
Ecr sale function in Eghl
ecrSettlement() Future<EghlResponseModel<EghlResponseMessageBaseModel>>
Ecr settlement function will notify Eghl terminal to get settlement
ecrVoid({required double amount, String? operatorID, String? orgTxnRef, String? customField, String? txnTraceID}) Future<EghlResponseModel<EghlResponseMessageBaseModel>>
Ecr void function in Eghl
networkCheck() Future<Json>
checking Eghl url is workable or not
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setPosDateTime() → void
toJson() Json
get Eghl instance propeties by json format
toString() String
get stringify toJson
override

Operators

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

Static Properties

instance EghlSdk?
get eghl sdk singleton instance
no setter