PEPaymentRequest class

Represents a payment request containing transaction details.

This class encapsulates all necessary information to process a payment, including the merchant's identifier, payment amount, currency code, and a list of payment items.

Constructors

PEPaymentRequest({required String merchantId, required double paymentAmount, required List<PEPaymentItem> paymentItems, String currencyCode = 'USD', PEPaymentOptions? platformOptions})
Creates an instance of PEPaymentRequest.

Properties

currencyCode → String
The currency code for the transaction (e.g., 'USD', 'CAD').
final
hashCode → int
The hash code for this object.
no setterinherited
merchantId → String
The unique identifier for the merchant processing the payment.
final
paymentAmount → double
The total amount to be charged in the specified currency.
final
paymentItems → List<PEPaymentItem>
A list of individual payment items describing the transaction.
final
platformOptions → PEPaymentOptions?
Platform-specific payment options, if applicable.
final
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
toJson() → Map<String, dynamic>
Converts this PEPaymentRequest instance to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

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