bool CancelTransaction(string)
Attempts to cancel an in-progress transaction, and returns the result via the OnKioEMVTransactionCompleted callback.
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
deviceName |
(Optional) string The name of the device. If not supplied, the first matching configured device of this type will be used. |
Return
True if the command was queued for processing, false otherwise.
Remarks
This call attempts to cancel an in-progress EMV transaction, regardless of what step the user is at. It is possible that the user will have progressed far enough that the transaction cannot be cancelled by this call. NETePay note: You must have dsiEMVUS 1.19 and greater and must have KioWare 8.14 or greater installed in order to use this method.
Examples
if (!KioEMVTransaction.CancelTransaction())
alert('Failed to call CancelTransaction!');
// callback fired when operation processed
function OnKioEMVTransactionCompleted(result) {
alert('Operation returned: ' + lastTransResult.Result);
}
Requirements
KioWare for Windows version 8.7 or greater.