PHPackages                             crasphb/kco\_rest\_xms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. crasphb/kco\_rest\_xms

ActiveLibrary

crasphb/kco\_rest\_xms
======================

Official Klarna REST PHP SDK

v5.0.0(3y ago)087Apache-2.0PHPPHP &gt;=5.5.0

Since Oct 12Pushed 3y agoCompare

[ Source](https://github.com/crasphbb/kco_rest_php)[ Packagist](https://packagist.org/packages/crasphb/kco_rest_xms)[ Docs](http://developers.klarna.com)[ RSS](/packages/crasphb-kco-rest-xms/feed)WikiDiscussions v4.x Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

\[DEPRECATED\] Official Klarna REST PHP SDK
===========================================

[](#deprecated-official-klarna-rest-php-sdk)

[![Packagist Version](https://camo.githubusercontent.com/e21e79ce6eb30b6a43fb27198922a4940be8b49decd46936080fcf5ae08cd9c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6c61726e612f6b636f5f726573742e7376673f7374796c653d666c6174)](https://packagist.org/packages/klarna/kco_rest)[![Build Status](https://camo.githubusercontent.com/7fe82e3baa1ffdf53c3602bac3d7797720472b1022f9a412e0cb1e267210089b/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b6c61726e612f6b636f5f726573745f7068702f76342e782e7376673f7374796c653d666c6174)](https://travis-ci.org/klarna/kco_rest_php)[![Coverage Status](https://camo.githubusercontent.com/5d3150827198baaabc957608ada2237c25666a63f4c54158c10a91e52799d223/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f6b6c61726e612f6b636f5f726573745f7068702f76342e782e7376673f7374796c653d666c6174)](https://coveralls.io/r/klarna/kco_rest_php?branch=v4.x)

SDK Deprecation Warning and Sunsetting
--------------------------------------

[](#sdk-deprecation-warning-and-sunsetting)

Dear community, the SDK you are currently looking at is now deprecated. These are details related to sunsetting:

- We intend to archive this repo on June 1 2020 (01/06/20)
- Until November 1 2020 (01/11/20) high severity security issues found within the latest published version will be fixed. All support will cease after this date.
- No new builds will follow effective April 20 (20/04/2020) apart from the fixes mentioned above.

### Workarounds

[](#workarounds)

We are making Klarna REST API definition files available in [Swagger / OAS v2](https://swagger.io/specification/v2/) format, under the [Klarna API Reference](https://developers.klarna.com/api/) section on the [Klarna Developer Portal](https://developers.klarna.com/). These will be regularly updated as the APIs evolve. You can use tools like  to generate your own SDKs, client libraries, etc.

Shop now. Pay later.
--------------------

[](#shop-now-pay-later)

Shop at your favorite stores today and experience the freedom to pay later with Klarna.

Getting started
---------------

[](#getting-started)

SDK covers all of Klarna API:

### Prerequisites

[](#prerequisites)

- PHP 5.5 or above
- [API credentials](#api-credentials)
- [Composer](https://getcomposer.org/) (optional)

### API Credentials

[](#api-credentials)

Before getting a production account you can get a playground one. Register here to be able to test your SDK integration before go live:

-  - for EU countries
-  - for the US

PHP SDK Installation and Usage
------------------------------

[](#php-sdk-installation-and-usage)

### Install via Composer

[](#install-via-composer)

To install the PHP SDK from the Central Composer repository use composer:

```
composer require klarna/kco_rest
```

Highly recommended to use version tag when installing SDK.

```
composer require klarna/kco_rest:1.2.3.4
```

Detailed information about the PHP SDK package and a list of available versions can be found here: [https://packagist.org/packages/klarna/kco\_rest](https://packagist.org/packages/klarna/kco_rest)

Include the SDK into your PHP file using the Composer autoloader:

```
