PaymentSuccessModel class
The model received on successful payment confirmation.
Constructors
-
PaymentSuccessModel({required String idx, required int amount, required String mobile, required String productIdentity, required String productName, required String token, required String? productUrl, required Map<
String, Object?> ? additionalData}) - Default constructor for PaymentSuccessModel.
-
PaymentSuccessModel.fromMap(Map<
String, Object?> map) -
Factory to create PaymentSuccessModel instance from
map
.factory
Properties
-
additionalData
→ Map<
String, Object?> ? -
An additionalData sent alongside the payment configuration.
final
- amount → int
-
The amount of transaction in paisa.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idx → String
-
A unique identification string representing the transaction.
final
- mobile → String
-
The Khalti ID on behalf of which the payment was made.
final
- productIdentity → String
-
A unique string to identify the product.
final
- productName → String
-
Descriptive name for the product.
final
- productUrl → String?
-
The product URL.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- token → String
-
The payment confirmation token.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited