Transaction Flow (Android)

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.

Take Your Business to the Next Level

Find out how our innovative payment solutions can benefit your business. Reach out to us for more information or to get started!

Let's Get Started