Initialisation is the first step in using the SDK. This section provides detailed instructions on how to initialise and authenticate the SDK in your application.
The easiest way to initialise the SDK is to add the following code inside AppDelegate
's application:didFinishLaunchingWithOptions
method:
import RevolutCardReader
final class AppDelegate: NSObject, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
// ...
RevolutCardReaderKit.shared.initialise(
clientId: "<clientId>",
returnURL: "<returnURL>",
environment: .production
)
return true
}
}
For more information about the available parameters, see: Revolut Reader iOS SDK: Parameters.
User authentication is performed using OAuth 2.0. To learn more about how to obtain a clientId
and a returnURL
see: Get started: Registration.