Perform Transactions
This api is used to Demo application to perform the transaction. It supports SALE, REFUND, VOID, PRE-AUTH & TICKET transaction types.
Watch this video for a visual walkthrough of the steps.
Input Request Parameters
Field | Type | Description | Example |
type * | string | Transaction type [SALE, REFUND, PREAUTH] | sale |
amount * | string | Transaction Amount | 10.00 |
- Access
makeARequestBasedOnTransactionTypes()ondeepLinkVariable
Plain text
deepLinkVariable.makeARequestBasedOnTransactionTypes(type: Type, Amount: Amount, delegate: self)2. Below snippet helps to make a sale transaction.
Plain text
func didReceiveResponse(success: URL?) {
if UIApplication.shared.canOpenURL(success!) {
UIApplication.shared.open(success!, options: [:]) { result in
print(result)
}
}
else {
txtResponse.text = ""
showAlert(alertMessage: "App Not Installed in the Device!")
}
}Was this section helpful?
On this page
- Perform Transactions