UniPayData class
UniPayDatais all we need to make a payment request to your desired payment gateway
Constructors
-
UniPayData({required String appName, required UniPayLocale locale, required UniPayCustomerInfo customerInfo, required UniPayCredentials credentials, required UniPayOrder orderInfo, UniPayEnvironment environment = UniPayEnvironment.production, required ValueChanged<
UniPayResponse> onPaymentSucess, required ValueChanged<UniPayResponse> onPaymentFailed, Map<String, dynamic> ? metaData, List<UniCustomerHistory> ordersHistory = const [], UniPayThemeData? themeData}) -
- Data constructor for
UniPayDatawith required parameters and optional parameters - Data constructor for
-
UniPayData.fromJson(Map<
String, dynamic> json) -
- Convert json into
UniPayData - Convert json into
Properties
- appName ↔ String
-
- Name of your application
getter/setter pair - credentials ↔ UniPayCredentials
-
- Credentials of payment gateway
getter/setter pair - customerInfo ↔ UniPayCustomerInfo
-
- Customer information with order shipping/delivery address
getter/setter pair - environment ↔ UniPayEnvironment
-
- Unipay enivronment
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- locale ↔ UniPayLocale
-
- Locale of gateway
getter/setter pair -
metaData
↔ Map<
String, dynamic> ? -
- Order Meta Data in key value pair, example:
getter/setter pair -
onPaymentFailed
↔ ValueChanged<
UniPayResponse> -
- Get response callback when payment request is failed
getter/setter pair -
onPaymentSucess
↔ ValueChanged<
UniPayResponse> -
- Listen to response when payment request is successfully completed
getter/setter pair - orderInfo ↔ UniPayOrder
-
- Order information
getter/setter pair -
ordersHistory
↔ List<
UniCustomerHistory> -
- Previous order history of the customer
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uniPayThemeData ↔ UniPayThemeData
-
- Uni pay theme data
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
- Convert
UniPayDatato json - Convert
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited