Mobile SDK
...
Transactions
Cancellation
1 min
to cancel an authorisation which has not yet cleared, you can send cancellation advice to the toro gateway as shown below val originaltransactiondetails = originaltransactiondetails( salereferenceid = "sale 12345", amount = 1000, currency = currencycode gbp, datetime = "2025 01 01t00 00 00 000z", transactionreference = "purchase 12345123", responsecode = responsecode approved, authcode = "123456", paymentinterface = paymentinterface contact, terminalserialnumber = "2110022", additionalresponseinformation = "01\ xzz022a3a0a9a99f1b5mxjyict525hcf" ) toro sendcancellationadvice( originaltransaction = originaltransactiondetails, oncompleted = { response > println("cancellation advice response received ${response name}") }, onerror = { error > println("cancellation advice error $error") } )
