Mobile SDK
...
Transactions
Completion
1 min
when toroconfig capturemode is set to capturemode manual you need to send completion advice to the toro gateway in order to capture the payment this can be done 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 sendcompletionadvice( originaltransaction = originaltransactiondetails, oncompleted = { response > println("completion advice response received ${response name}") }, onerror = { error > println("completion advice error $error") } )
