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
|
Transaction type [SALE, REFUND, PREAUTH] |
|
Access makeARequestBasedOnTransactionTypes() on deepLinkVariable
deepLinkVariable.makeARequestBasedOnTransactionTypes(type: Type, Amount: Amount, delegate: self)
2. Below snippet helps to make a sale transaction.
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!")
}
}