PaymentConfig class

The payment configuration to configure gateway widgets and create khalti configuration to be sent to the server.

Constructors

PaymentConfig({required int amount, required String productIdentity, required String productName, String? productUrl, Map<String, Object>? additionalData, String? mobile, bool mobileReadOnly = false, String? returnUrl})
Creates PaymentConfig from the provided objects.

Properties

additionalData Map<String, Object>?
An additionalData sent alongside the payment configuration.
final
amount int
The payment amount in paisa.
final
hashCode int
The hash code for this object.
no setteroverride
mobile String?
A mobile number to preset in Khalti Mobile Number field.
final
mobileReadOnly bool
Makes the mobile field non-editable, if true.
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
returnUrl String
A redirection url after successful payment. The redirected URL will be in the following format.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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.
override