Perform Transactions
This API is used to invoke applications to perform the transaction.
It supports:
- SALE
- REFUND
- PRE AUTH
- TICKET
- VOID
- BATCH SETTLEMENT
- For Sale, Refund, and Pre Auth transactions, ensure that you use the same
startTransactionto call their respective APIs. - The
tranTypeparameter must be adjusted according to the transaction type.
Initiate Transactions
Use the deepLink.startTransaction to initiate the transactions.
API Call ExamplesAPI Call Examples
The structure and API call method are consistent for Sale, Refund, and Pre Auth transactions. You can use it for all three transaction types.
Plain text
// Define the PayloadParameter struct
struct TxnData: PayloadParameter {
var amount: String
var tipAmount: String?
var feeAmount: String?
var currencyCode: CurrencyCode
var tranType: TransType
var showTipScreen: Bool?
var showBreakUpScreen: Bool?
var showApprovalScreen: Bool?
}
// Payload of saleStruct
let sale = TxnData
(
amount: 1,
currencyCode: .USD,
tranType: .SALE,
tipAmount: 1.00, //Optional
feeAmount: 5.00, //Optional
showTipScreen: true, //Optional
showBreakUpScreen: true, //Optional
showApprovalScreen: true //Optional
)
// Start the transaction using this method.
readerInstance.startTransaction(param: sale, delegate: self)Transaction Example Using Deep Linking V2
Was this section helpful?
What made this section helpful for you?
What made this section unhelpful for you?
On this page
- Perform Transactions