Transaction Events (iPhone)

Transaction Events — iPhone

EventWhenRecommended UI
transactionStartedNFC activatingShow "Present card"
cardDetectedCard readShow spinner
transactionApprovedApproval receivedGreen checkmark + receipt
transactionDeclinedDecline receivedDecline message
transactionCancelledTimeout/cancelReturn to amount entry
transactionErrorErrorError + retry
transactionManager.onEvent = { [weak self] event in
    DispatchQueue.main.async {
        switch event {
        case .transactionStarted:  self?.statusLabel.text = "Hold card near top of phone"
        case .cardDetected:        self?.activityIndicator.startAnimating()
        case .transactionApproved(let txn): self?.showApproval(txn)
        case .transactionDeclined(let r):   self?.showDecline(r)
        default: break
        }
    }
}
See the Tap to Pay on iPhone overview for full context and the complete 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