PHPackages                             coretrekstein/vippsomnipay - 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. coretrekstein/vippsomnipay

ActiveLibrary[Payment Processing](/categories/payments)

coretrekstein/vippsomnipay
==========================

Vipps driver for the Omnipay payment processing library

08HTML

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/coretrekstein/vippsomnipay)[ Packagist](https://packagist.org/packages/coretrekstein/vippsomnipay)[ RSS](/packages/coretrekstein-vippsomnipay/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Vipps - Omnipay
===============

[](#vipps---omnipay)

[Packagist](https://packagist.org/packages/coretrekstein/vippsomnipay)[GitHub](https://github.com/coretrekstein/vippsomnipay)

Install
-------

[](#install)

```
composer require coretrekstein/vippsomnipay

```

Simple html form for mobile number and amount
---------------------------------------------

[](#simple-html-form-for-mobile-number-and-amount)

```

    Telefonnummer

    Beløp (i ører)

    Betal med Vipps

```

Initialize gateway, authorize, purchase and redirect to Vipps
-------------------------------------------------------------

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

```
use CoreTrekStein\VippsOmnipay;

$gateway = new VippsOmnipay\Gateway();

$gateway->initialize(array(
    'baseUrl'              => '',
    'clientId'             => '',
    'clientSecret'         => '',
    'ocpSubscription'      => '',
    'merchantSerialNumber' => ''
));

$gateway->authorize());

$card = new CreditCard(array(
    'number' => $_GET['phone']
));

$transaction = $gateway->purchase(array(
    'amount'   => $_GET['amount'],
    'currency' => 'NOK',
    'card'     => $card,
));
$response = $transaction->send();

header("Location: " . $response->getData()['url']);
```

Vipps sends a post request to website
-------------------------------------

[](#vipps-sends-a-post-request-to-website)

```
$params = array(
    'access_token'         => $_GET['access_token'],
    'order_id'             => $_GET['order_id'],
    'transactionReference' => $_GET['order_id']
);

$response = $gateway->capture($params)->send();

echo json_encode(array());
```

Validate the payment
--------------------

[](#validate-the-payment)

```
$response = $gateway->completePurchase()->send();
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

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

---

Top Contributors

[![coretrekstein](https://avatars.githubusercontent.com/u/80261947?v=4)](https://github.com/coretrekstein "coretrekstein (3 commits)")

### Embed Badge

![Health badge](/badges/coretrekstein-vippsomnipay/health.svg)

```
[![Health](https://phpackages.com/badges/coretrekstein-vippsomnipay/health.svg)](https://phpackages.com/packages/coretrekstein-vippsomnipay)
```

###  Alternatives

[msilabs/bkash

bKash Payment Gateway API for Laravel Framework.

181.1k](/packages/msilabs-bkash)

PHPackages © 2026

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