Adding the SDK

You can either use Cocoapods, or manually install the Klarna Checkout SDK for mobile apps in your environment.

Cocoapods

1
pod 'KlarnaCheckout'

Manual installation

If you don’t use Cocoapods, manually download the iOS SDK framework from github and link the dependencies

1
2
3
4
5
6
7
  MobileCoreServices
  SafariServices
  JavascriptCore
  SystemConfiguration
  WebKit
  Security
  CFNetwork

Prepare Your App

Klarna Checkout needs to be able to open external apps, since this is required in some consumer authentication scenarios.

Add the following configuration in your Info.plist:

1
2
3
4
<key>LSApplicationQueriesSchemes</key>
<array>
<string>bankid</string>
</array>