Payment class

Payment deals with the operation related to an Order by its orderId.

Constructors

Payment({String paymentId = '', PINAppIntent? pinAppIntent, HttpService? httpService})
Payment.fromJson(String source)
factory
Payment.fromMap(Map<String, dynamic> map)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
paymentId String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

cancelPayment() Future<PaymentStatus>
Cancels the current payment and returns the PaymentStatus which is PaymentStatus.canceled
getPaymentStatus() Future<PaymentStatus>
Returns the PaymentStatus for the current payment instance.
getTransactionDetails() Future<TransactionDetails>
Returns the Transaction
initiatePayment(String orderId) Future<Payment>
Initiates a payment for given orderId and returns a paymentId for that instance. Also call the ttp app to perform card transaction.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
voidPayment() Future<PaymentStatus>
Voids the current payment and returns the PaymentStatus which is PaymentStatus.canceled

Operators

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