Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A mirror of the liberally licensed parts of Klarna's PHP API
branch: master
Failed to load latest commit information.
checkout Updated to version 2.2.1
pclasses Updated to version 2.2.1
transport/xmlrpc-3.0.0.beta/lib Updated to version 2.1.2
.gitignore Updated to version 2.2.1
CHANGELOG Updated to v2.3.4 (which is called v2.4.0 on the Klarna integration s…
Country.php Updated to version 2.3.0.
Currency.php Updated to version 2.2.1
Encoding.php Updated to v2.3.4 (which is called v2.4.0 on the Klarna integration s…
Exceptions.php Updated to version 2.3.0.
Flags.php
Klarna.php Updated to v2.3.4 (which is called v2.4.0 on the Klarna integration s…
Language.php Updated to version 2.3.0.
README.md Added a readme and a composer file
composer.json Added a readme and a composer file
klarnaaddr.php Updated to version 2.3.0.
klarnacalc.php Updated to version 2.3.0.
klarnaconfig.php Updated to version 2.2.1
klarnapclass.php Updated to version 2.2.1

README.md

Klarna PHP API (mirror)

This is a (very slightly altered) mirror of Klarna's PHP API. Feel free to use it as you wish.

Very slight alterations

We've done a couple of (very slight) alterations. First off, we're not distributing the "examples" directory, because the license isn't explicitly defined.

We're also including a composer.json file. There are however a major caveat. The required XML-RPC library is not part of the autoloading definition. Klarna's code requires both xmlrpc.inc and xmlrpc_wrappers.inc to be loaded. Both these files pollutes the global namespace with a lot of variables, and the latter doesn't define any class, just functions.

Because of this (and the fact that we're just a mirror) we won't be submitting this repository to Packagist, so if you want to install it through Composer, you'll need to add this as an inline repository (or to an internal Satis server).

Something went wrong with that request. Please try again.