Unboxing the iOS SDK
Key Classes
CyoGateSDK— Main SDK moduleCyoGateConfiguration— Configuration objectCyoGateTransactionManager— Manages transaction lifecycleCyoGateTransactionRequest— Describes a paymentCyoGateTransactionResult— Contains the outcomeCyoGateDelegate— Protocol for transaction events
import CyoGateSDK
class CheckoutViewController: UIViewController, CyoGateDelegate {
var transactionManager: CyoGateTransactionManager!
override func viewDidLoad() {
super.viewDidLoad()
let config = CyoGateConfiguration(apiKey: "YOUR_PUBLIC_KEY", environment: .production)
transactionManager = CyoGateTransactionManager(configuration: config, delegate: self)
}
}
See the Tap to Pay on iPhone overview for full context and the complete topic list.