Payment class
Constructors
- Payment({String paymentId = '', PINAppIntent? pinAppIntent, HttpService? httpService})
- Payment.fromJson(String source)
-
factory
-
Payment.fromMap(Map<
String, dynamic> map) -
factory
Properties
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