Transaction Flow — Android
val request = TransactionRequest(
amount = BigDecimal("29.99"), currency = "USD",
type = TransactionType.SALE, orderID = "ORDER-${UUID.randomUUID()}"
)
sdk.startTransaction(activity = this, request = request,
callback = object : CyoGateTransactionCallback {
override fun onApproved(r: TransactionResult) { showReceipt(r.transactionID) }
override fun onDeclined(r: TransactionResult) { showDeclineMessage(r.responseText) }
override fun onError(e: CyoGateError) { showErrorMessage(e.localizedMessage) }
}
)
See the Tap to Pay on Android overview for the full topic list.