Transaction
Represents a financial transaction, containing detailed information about the payment.
This data class holds all relevant data for a transaction that has been processed, including identifiers, payment details, and status.
Constructors
Properties
The name of the cardholder.
The last four digits of the card number.
An optional identifier for the transaction provided by the client.
The ISO 4217 currency code for the transaction amount (e.g., "USD").
An optional description for the transaction.
The reason for the failure of the transaction, if applicable
The result code from the payment gateway
The result message from the payment gateway
The method of payment used.
Payment information for the transaction, if available
The primary key for the payment transaction.
The date and time when the transaction occurred.
The unique identifier for the transaction.
The current status of the transaction (e.g., "Completed", "Pending").
Functions
Converts the Transaction object to a JsonObject for API requests.