PaymentRequest class

Represents a payment request containing details required to process a transaction. This class is typically used to encapsulate payment-related data before sending it to a payment gateway or API.

Constructors

PaymentRequest({required String orderId, required String storeId, required String transactionAmount, required String transactionType, required String mobileAccountNo, required String emailAddress})
Constructs an instance of PaymentRequest.

Properties

emailAddress String
The email address of the customer initiating the payment.
final
hashCode int
The hash code for this object.
no setterinherited
mobileAccountNo String
The mobile account number associated with the payment (e.g., a phone number for mobile money payments).
final
orderId String
A unique identifier for the order associated with the payment.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storeId String
The identifier of the store or merchant initiating the payment.
final
transactionAmount String
The amount of the transaction, typically represented as a string (e.g., "100.00").
final
transactionType String
The type of transaction (e.g., "purchase", "refund", "authorization").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the PaymentRequest object into a JSON map.
toString() String
A string representation of this object.
inherited

Operators

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