Transaction Flow — iPhone
- App creates a
CyoGateTransactionRequest - SDK activates NFC and shows payment prompt
- Customer taps card/device
- NFC reads and generates transaction cryptogram
- SDK sends to CyoGate gateway
- Gateway returns approved/declined response
- App shows result and receipt
let request = CyoGateTransactionRequest(
amount: 29.99, currency: "USD", type: .sale,
orderID: "ORDER-\(UUID().uuidString)", description: "Coffee"
)
transactionManager.startTransaction(request: request) { result in
DispatchQueue.main.async {
switch result {
case .approved(let txn): self?.showSuccess(transactionID: txn.transactionID)
case .declined(let r): self?.showDecline(reason: r)
case .error(let e): self?.showError(error: e)
}
}
}
See the Tap to Pay on iPhone overview for full context and the complete topic list.