PHPackages                             alegra/omnipay-klarna - 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. [Payment Processing](/categories/payments)
4. /
5. alegra/omnipay-klarna

ActiveLibrary[Payment Processing](/categories/payments)

alegra/omnipay-klarna
=====================

Klarna gateway for Omnipay payment processing library

v0.0.2(4y ago)0322MITPHPPHP ^7.3

Since May 25Pushed 4y ago5 watchersCompare

[ Source](https://github.com/alegraio/omnipay-klarna)[ Packagist](https://packagist.org/packages/alegra/omnipay-klarna)[ Docs](https://github.com/alegraio/omnipay-klarna)[ RSS](/packages/alegra-omnipay-klarna/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (0)

omnipay-klarna
==============

[](#omnipay-klarna)

[![Build Status](https://github.com/alegraio/omnipay-klarna/workflows/tests/badge.svg)](https://github.com/alegraio/omnipay-klarna/actions)[![Total Downloads](https://camo.githubusercontent.com/d18cf80a8c181edddc60fb8aa561908637ec3a5df4a87a0340e512916da216cb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c656772612f6f6d6e697061792d6b6c61726e61)](https://packagist.org/packages/alegra/omnipay-klarna)[![Latest Stable Version](https://camo.githubusercontent.com/22826cc4589a6c5ef7d70325ee9046bb49b46b6f56d4027ad4fb4dad67e8fc33/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c656772612f6f6d6e697061792d6b6c61726e61)](https://packagist.org/packages/alegra/omnipay-klarna)

Klarna gateway for Omnipay payment processing library

[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment processing library for PHP 7.3+. This package implements Klarna Online Payment Gateway support for Omnipay.

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.3.x,
- [Omnipay V.3](https://github.com/thephpleague/omnipay) repository,
- PHPUnit to run tests

Autoload
--------

[](#autoload)

You have to install omnipay V.3

```
composer require league/omnipay:^3
```

Then you have to install omnipay-payu package:

```
composer require alegra/omnipay-klarna
```

> `payment-klarna` follows the PSR-4 convention names for its classes, which means you can easily integrate `payment-klarna` classes loading in your own autoloader.

Basic Usage
-----------

[](#basic-usage)

- You can use /examples folder to execute examples. This folder is exists here only to show you examples, it is not for production usage.
- First in /examples folder:

```
composer install
```

**Authorize Example**

- You can check authorize.php file in /examples folder.

```
