Latest 2.0.0
Homepage https://github.com/klarna/klarna-on-demand-ios
License Apache 2.0
Platforms ios 8.0, requires ARC
Authors

Klarna on Demand

Build Status
Version
License
Platform

Klarna on-demand allows you to integrate Klarna’s payment solution in mobile apps that offer on demand services. It’s a perfect fit for apps selling concert tickets, taxi rides, food pick-ups, etc.

This project contains Klarna’s on-demand payment solution SDK for iOS 8+, as well as a sample application utilizing the SDK.

It's Klarna in your App

While not necessary, the simplest way to get going with both the sample application and the SDK is to use CocoaPods and so all the following instructions will focus on that approach. For an alternative approach, see the official documentation (coming soon).

Using the SDK

Have a look at the integration guide for full details on how to use our SDK in your application.

For a short overview of the recent changes, please check out the project’s changelog.

Running the sample application

Assuming you’ve cloned the repository, simply cd into the repo, open KlarnaOnDemand.xcworkspace and run the KlarnaOnDemandExample project.

Note: While this will get the application up and running, you will not be able to successfully perform purchases without a backend for the application to interact with. You should go here and follow the instructions provided to get a sample backend running on your local machine.

Contributing

You’d like to help us out? That’s great! Here’s what you need to do in order to contribute.

Prerequisites

You’ll need to install CocoaPods in order to properly work on the project. Assuming you have Ruby installed, all you need to do is type this into your terminal:

gem install cocoapods

Setup

  1. Fork the project and clone your repository
  2. In the project folder, run pod install
  3. Open KlarnaOnDemand.xcworkspace and code away

Tests

Pull requests must include tests for their proposed fixes/functionality. We use Kiwi to write our tests and you can find the tests themselves under the KlarnaOnDemand project in the KlarnaOnDemandTests folder.

License

Klarna on Demand is available under the Apache 2.0 license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Klarna-on-Demand",
    "version": "2.0.0",
    "summary": "SDK for Klarna's on-demand purchase service.",
    "description": "Klarna on-demand allows you to integrate Klarna's payment solution in mobile apps that offer on demand services.nIt's a perfect fit for apps selling concert tickets, taxi rides, food pick-ups, etc.",
    "homepage": "https://github.com/klarna/klarna-on-demand-ios",
    "screenshots": "https://raw.githubusercontent.com/klarna/klarna-on-demand-ios/master/screenshot.png",
    "license": "Apache 2.0",
    "authors": {
        "Klarna On-Demand Team": "[email protected]"
    },
    "source": {
        "git": "https://github.com/klarna/klarna-on-demand-ios.git",
        "tag": "2.0.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "xcconfig": {
        "ALWAYS_SEARCH_USER_PATHS": "NO"
    },
    "source_files": "KlarnaOnDemand/**/*.{h,m}",
    "resource_bundles": {
        "KOD": "KlarnaOnDemand/KOD.bundle/*.lproj"
    },
    "default_subspecs": [
        "Crypto",
        "JockeyJS"
    ],
    "subspecs": [
        {
            "name": "Crypto",
            "source_files": "3rdParty/Crypto/**/*.{h,m}",
            "private_header_files": "3rdParty/Crypto/**/*.h",
            "xcconfig": {
                "OTHER_LDFLAGS": "-ObjC -all_load"
            },
            "prefix_header_file": "3rdParty/Crypto/Crypto-Prefix.pch"
        },
        {
            "name": "JockeyJS",
            "source_files": "3rdParty/JockeyJS/*.{h,m}",
            "private_header_files": "3rdParty/JockeyJS/*.h"
        }
    ]
}

Pin It on Pinterest

Share This