TransactionOption class

Represents a single payment transaction option in the PayPal payment process.

This class bundles together the total payment amount, a descriptive text about the transaction, optional payment options, and the list of items involved in the transaction.

Constructors

TransactionOption.new({required PayPalAmount payPalAmount, required String description, PaymentOptions? paymentOptions, required ItemList itemList})
const

Properties

description String
  • description: A brief description of the transaction, shown to the payer.
  • final
    hashCode int
    The hash code for this object.
    no setterinherited
    itemList ItemList
  • itemList: Contains the list of items included in the transaction along with an optional shipping address.
  • final
    paymentOptions PaymentOptions?
  • paymentOptions: Optional settings specifying allowed payment methods for this transaction.
  • final
    payPalAmount PayPalAmount
  • payPalAmount: The total amount of the transaction including currency and payment breakdown. The total in payPalAmount must exactly match the sum of prices in itemList. 📌 Make sure that the total amount in payPalAmount aligns with the sum of item prices in itemList to avoid discrepancies during payment processing.
  • final
    props List<Object?>
    The list of properties that will be used to determine whether two instances are equal.
    no setter
    runtimeType Type
    A representation of the runtime type of the object.
    no setterinherited
    stringify bool?
    If set to true, the toString method will be overridden to output this instance's props.
    no setterinherited

    Methods

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

    Operators

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