PaymentIntentViewModel class

ViewModel for handling payment intents using the Thawani payment API.

Constructors

PaymentIntentViewModel()

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

check({required String id, required String apiKey, required bool testMode, required void onDone(CheckPaymentModel data), required void onError(Map<String, dynamic> data)}) → void
Checks the status of a payment intent.
conform({required String id, required String apiKey, required bool testMode, required void onDone(ConformPaymentModel data), required void onError(Map<String, dynamic> data)}) → void
Confirms a payment intent.
create(String apiKey, {required int amount, required String returnLink, required bool testMode, required String cardID, required String clientID, Map<String, dynamic>? metadata, required void onDone(ConformPaymentModel data, CreatePaymentModel pData), required void onError(Map<String, dynamic> data)}) → void
Creates a payment intent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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