This product, Klarna Checkout (v2) is deprecated. Go to the current version

Python SDKs

Download and use a client library for a fully featured and simple integration with our API.

For Klarna Checkout, you have one Checkout SDK and one Order handling SDK, if you will integrate both the checkout and order handling in your backend, you will need both SDKs.

Checkout

Requirements

  • API credentials
  • Python
    • >= 2.7
    • >= 3.1

Instructions

The recommended way to install is using pip.

    pip install klarnacheckout

If you do not have pip, you can clone the project on GitHub, or download the package from here. Then run

    python setup.py install

Changelog

===========================
Klarna Checkout Python library
===========================

v3.0.0
----------------
Date: 2015-06-02

    Christer G. <support@klarna.com>
        Update resource constructors. Only allow creation with IDs instead of full URIs.

v2.0.2
----------------
Date: 2015-05-21

    David K <support@klarna.com>
        Fix property access error.

v2.0.1
----------------
Date: 2015-05-21

    Christer G <support@klarna.com>
        Fix import error.


v2.0.0
----------------
Date: 2015-05-21

    Christer G <support@klarna.com>
        Adding support for recurring orders.

v1.0.1
----------------
Date: 2014-05-08

    Rickard D <support@klarna.com>
        Update UserAgent to also work on Python 3.3


v1.0.0
----------------
Date: 2013-01-09

    Klarna <support@klarna.com>
        Initial release.

clone on GitHub!

Order managment

Requirements

  • API credentials
  • Python
    • >= 2.7
    • >= 3.1

Instructions

The recommended way to install is using pip.

    pip install Klarna_API

If you do not have pip you can download the package from here. Then run

    python setup.py install

Changelog

PYTHON-API
==========

v3.1.0
----------------
Date: 2015-05-25

Story (#2136) (Matthias F.) - Added extend_expiry_date method

v3.0.1
----------------
Date: 2015-01-19

Bug (#2017) (David K.) - Fix loading of custom pclass storage modules

v3.0.0
----------------
Date: 2014-07-09

Story (#1683) (Joakim L.) - Remove update_notes and reserve_OCR_email functions

v2.5.0
---------------
Date: 2014-03-25

Story (#1530) (Christer G.) - Remove Candice from Python Library

v2.4.1
---------------
Date: 2013-09-03

Story (#891) (Rickard D.) - Update lowest_monthly_payment_for_account
Story (#675) (Majid G.) - Add goods list to credit calls for restocking fees and 0 amount for reserve_amount
Story (#676) (Majid G.) - Change BETA host from beta-test to testdrive

v2.3.1
---------------
Date: 2013-01-08

Rickard D. <support@klarna.com>
    examples/activate_reservation :
    Removed ClientIP from example file

v2.3.0
---------------
Date: 2012-12-04

Rickard D. <support@klarna.com>
    klarna.py (change_reservation) :
    Allow negative amount to be used.

    klarna.py (check_email) :
    klarnaaddr.py (city) :
    Removed validation of input.

    klarna.py (activate_reservation) :
    Always send in 0.0.0.0 as client IP address.

    klarna.py (return_amount) :
    Added possibility to send in a description to replace the default
    "Discount" text on a customers invoice.

    klarna.py (activate) : new function
    Added activate function to allow a reservation to be activated with a
    minimum of information.

    klarna.py (update) : new function
    Added update function to allow a reservation to be updated with a
    minimum of information.

v2.2.0
---------------
Date: 2012-03-16

* change candice url

* make fetch_pclasses fetch for the configured country

* move towards a pep8 compliant code style

* change type of minamount to float

* extension module loader
    modules are installed by calling the install function found in klarna.kex
    this will extend the API class with additional methods

* use unicode internally and convert to iso-8859-1 before sending to make
    python2 and 3 differences workarounds easier to manage

v2.1.0
----------------
Date: 2011-08-05

* switch to sha512 hash

* refactor pclass storage.

* add country convenience methods

* implement ILT tests API

* change clientvsn syntax

v2.0.0
----------------
Date: 2011-06-28
First release