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 let originaltransactiondetails = originaltransactiondetails( salereferenceid "sale 12345", amount 1000, currency gbp, datetime "2025 01 01t00 00 00 000z", transactionreference "purchase 12345123", responsecode approved, authcode "123456", paymentinterface contact, terminalserialnumber "2110022", additionalresponseinformation "01\ xzz022a3a0a9a99f1b5mxjyict525hcf" ) toro sendcancellationadvice( originaltransactiondetails originaltransactiondetails, oncompleted { responsecode in print("cancellation advice response received \\(responsecode)") }, onerror { error in print("cancellation advice error \\(error)") } )
