MoneybagInfo class

Create a MoneybagInfo for payment *Either email or phone_no must be provided. At least one of these fields.

const moneyBag = MoneyBag(
  merchantID: "YOUR_MERCHANT_ID",
  authKey: "YOUR_AUTH_KEY",
  orderId: "YOUR_ORDER_ID",
  currency: "BDT",
  orderAmount: "100",
  description: "Order Description",
  returnURL: "YOUR_RETURN_URL",
  email: "YOUR_EMAIL_ADDRESS",
  phoneNo: "YOUR_PHONE_NUMBER",
);
Available extensions

Constructors

MoneybagInfo({required bool isDev, required String merchantID, required String authKey, required String orderId, required String currencyCode, required double orderAmount, required String description, required String returnURL, String? email, String? phoneNo})
constructor for MoneybagInfo for payment
const

Properties

authKey String
Authentication key for the merchant
final
currencyCode String
currency code
final
description String
Description of the transaction
final
email String?
Email address of the customer (optional if phone_no is provided)
final
hashCode int
The hash code for this object.
no setterinherited
isDev bool
whether the it will be for production or dev true -> development
final
isValid String?

Available on MoneybagInfo, provided by the MoneybagInfoExtension extension

no setter
merchantID String
unique identifier for the merchant
final
orderAmount double
Amount of the order
final
orderId String
unique identifier for the order
final
phoneNo String?
Phone number of the customer (optional if email is provided)
final
returnURL String
URL to which the user will be redirected after payment
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? isDev, String? merchantID, String? authKey, String? orderId, String? currencyCode, double? orderAmount, String? description, String? returnURL, String? email, String? phoneNo}) MoneybagInfo
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

Operators

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