PHPackages                             pindena/omnipay-vipps - 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. pindena/omnipay-vipps

ActiveLibrary[Payment Processing](/categories/payments)

pindena/omnipay-vipps
=====================

Vipps driver for the Omnipay payment processing library

v1.0.18(4mo ago)1848MITPHP

Since May 4Pushed 4mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

Omnipay: Vipps
==============

[](#omnipay-vipps)

**Vipps driver for the Omnipay PHP payment processing library**

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

Installation
------------

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `pindena/omnipay-vipps` with Composer:

```
composer require league/omnipay pindena/omnipay-vipps

```

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

[](#basic-usage)

The following gateways are provided by this package:

- Vipps (Vipps Ecomm Checkout)

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay)repository and the [Vipps documentation](https://developer.vippsmobilepay.com/docs/APIs/ecom-api/).

### Initialize gateway, authorize and redirect to Vipps

[](#initialize-gateway-authorize-and-redirect-to-vipps)

```
use Pindena\Omnipay\Vipps\Gateway;

$gateway = new Gateway();

$gateway->initialize([
    'clientId'             => '',
    'clientSecret'         => '',
    'ocpSubscription'      => '',
    'merchantSerialNumber' => '',
]);

$response = $gateway->authorize([
    'amount'      => '10.00',
    'currency'    => 'NOK',
    'description' => 'This is a test transaction',
    'phone'       => $_POST['phone'],
    'returnUrl'   => $fallbackUrl,
    'notifyUrl'   => $callbackPrefix,
])->send();

if ($response->isRedirect()) {
    $response->redirect();
}
```

### Capture the authorized amount

[](#capture-the-authorized-amount)

```
$response = $gateway->capture([
    'amount'               => $amount,
    'description'          => 'This is a test transaction',
    'transactionReference' => $transactionReference,
])->send();
```

### Get the transaction details

[](#get-the-transaction-details)

```
$response = $gateway->completeAuthorize(['transactionReference' => $transactionReference])->send();
```

### Troubleshooting headers

[](#troubleshooting-headers)

Vipps requires partners and platforms to send special headers on all requests. This can be achieved by adding headers in the initialize options or on each request.

```
$gateway->initialize([
    'clientId'             => '',
    'clientSecret'         => '',
    'ocpSubscription'      => '',
    'merchantSerialNumber' => '',
    'headers'              => [
        'Vipps-System-Name' => 'System name',
        'Vipps-System-Version' => 'v1.0',
    ],
]);
```

Quirks
------

[](#quirks)

Vipps will send a `notify`-request to `[notifyUrl]/v2/payments/[orderId]`. For Laravel this means you will need to register a `POST` route in `web.php` which listens on `/v2/payments/{orderId}` for handling payment notifications from Vipps.

Out Of Scope
------------

[](#out-of-scope)

Omnipay does not cover recurring payments or billing agreements, and so those features are not included in this package. Extensions to this gateway are always welcome.

Support
-------

[](#support)

If you are having general issues with Omnipay, we suggest posting on [Stack Overflow](http://stackoverflow.com/). Be sure to add the [omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.

If you want to keep up to date with release anouncements, discuss ideas for the project, or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which you can subscribe to.

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/pindena/omnipay-vipps/issues), or better yet, fork the library and submit a pull request.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance76

Regular maintenance activity

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~97 days

Recently: every ~404 days

Total

19

Last Release

130d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/83646589?v=4)[pindena](/maintainers/pindena)[@pindena](https://github.com/pindena)

---

Top Contributors

[![NicTorgersen](https://avatars.githubusercontent.com/u/1327106?v=4)](https://github.com/NicTorgersen "NicTorgersen (24 commits)")[![sharald](https://avatars.githubusercontent.com/u/11389904?v=4)](https://github.com/sharald "sharald (15 commits)")[![coretrekstein](https://avatars.githubusercontent.com/u/80261947?v=4)](https://github.com/coretrekstein "coretrekstein (3 commits)")

---

Tags

vipps

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pindena-omnipay-vipps/health.svg)

```
[![Health](https://phpackages.com/badges/pindena-omnipay-vipps/health.svg)](https://phpackages.com/packages/pindena-omnipay-vipps)
```

###  Alternatives

[ignited/laravel-omnipay

Integrates Omnipay with Laravel and provides an easy configuration.

5211.1M12](/packages/ignited-laravel-omnipay)[omnipay/mollie

Mollie driver for the Omnipay payment processing library

631.8M10](/packages/omnipay-mollie)[silverstripe/silverstripe-omnipay

SilverStripe Omnipay Payment Module

38110.0k17](/packages/silverstripe-silverstripe-omnipay)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
