Ticket Transactions
A Ticket transaction is used to finalize and capture a previously initiated Pre-Authorization (Pre-Auth). Once the goods or services have been delivered and the final amount is confirmed, the merchant uses the Ticket function to complete the payment.
To perform a Ticket transaction, the RRN (Retrieval Reference Number) from the original Pre-Auth transaction is required. This allows the system to locate and complete the correct authorization.
Import the payload provided below into your code to perform Ticket transactions.
// Define the Ticket struct
struct TicketTxnData: TicketPayloadParameter {
var amount: String?
var tipAmount: String?
var feeAmount: String?
var currencyCode: CurrencyCode
var tranType: TransType
var showTipScreen: Bool?
var showBreakUpScreen: Bool?
var showApprovalScreen: Bool?
var rrn: String
}
// Payload of Ticket
let ticket = TicketTxnData
(
currencyCode: .USD,
tranType: .TICKET,
amount: 10.00, //Optional
tipAmount: 1.00, //Optional
feeAmount: 1.00, //Optional
showTipScreen: false, //Optional
showBreakUpScreen: true, //Optional
showApprovalScreen: false, //Optional
rrn: "123445667788"
)
// Start the transaction using this method.
readerInstance.startTicket(params: ticket, delegate: self)Tabular Representation of the Ticket Payload
Parameters Name | Type | Description | Sample |
tranType * | Enum | Specifies the type of transaction, e.g., TICKET. | .TICKET |
amount * | String | The total transaction amount. | 10.00 |
tipAmount | String | Additional tip amount, if applicable. | 1.00 |
feeAmount | String | Additional fee amount, if applicable. | 2.00 |
currencyCode * | Enum | The currency in which the transaction is processed. | .usd |
showTipScreen | Bool | Determines whether the tip input screen should be displayed. | FALSE |
showBreakUpScreen | Bool | Determines whether the amount breakdown screen should be displayed. | TRUE |
showApprovalScreen | Bool | Determines whether the approval confirmation screen should be displayed. | FALSE |
rrn * | String | Unique identifier to track the transaction from TXN response | 123536758578 |
What made this section helpful for you?
What made this section unhelpful for you?
On this page
- Ticket Transactions