PHPackages                             alekserok/omnipay-payson - 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. alekserok/omnipay-payson

ActiveLibrary[Payment Processing](/categories/payments)

alekserok/omnipay-payson
========================

Payson.se Gateway for the Omnipay payment processing library

010PHP

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/alekserok/omnipay-payson)[ Packagist](https://packagist.org/packages/alekserok/omnipay-payson)[ RSS](/packages/alekserok-omnipay-payson/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Payson
===============

[](#omnipay-payson)

**Payson.se Gateway for the Omnipay PHP payment processing library.**

### See [Payson Rest Api V2](https://tech.payson.se/paysoncheckout2/rest-api/) for details

[](#see-payson-rest-api-v2-for-details)

### See [Payson Api V1](https://tech.payson.se/paysoncheckout1/) for details

[](#see-payson-api-v1-for-details)

Usage (Api V2):
---------------

[](#usage-api-v2)

```
// create payson transaction:

$gateway = Omnipay::create('Payson_ApiV2');
$gateway->initialize([
    'apiKey' => '2acab30d-fe50-426f-90d7-8c60a7eb31d4',
    'agentId' => '4',
    'testMode' => true,
]);

$response = $gateway->purchase([
     'returnUrl' => 'http://hostname/return',
     'notifyUrl' => 'http://hostname/notify',
     'termsUrl' => 'http://hostname/terms',
     'currency' => 'sek',
     'items' => [
         [
             'name' => 'Item name',
             'unitPrice' => 10.01
             'quantity' => 1,
             'reference' => 'order or transaction Id in your system'
             'type' => 'service'
         ]
     ]
 ])->send();

if ($response->isRedirect()) {
    $transactionReference = $response->getTransactionReference();
    $responseData = $response->getData();
    $response->redirect();
}

// check transaction status and update payment status in your system

$response = $gateway->completePurchase([
    'transactionReference' => $transaction->reference
])->send();

if ($response->isSuccessful()) {
    $restponseDetails = $response->getData();
}

```

Usage (Api V1):
---------------

[](#usage-api-v1)

```
$gateway = Omnipay::create('Payson_ApiV1');
$gateway->initialize([
    'apiKey' => '2acab30d-fe50-426f-90d7-8c60a7eb31d4',
    'agentId' => '4',
    'testMode' => true,
    'receiverEmail' => 'testagent-checkout2@payson.se'
]);

$response = $gateway->purchase([
    'returnUrl' => 'http://hostaname/return',
    'notifyUrl' => 'http://hostname/notify',
    'cancelUrl' => 'http://hostname/cancel',
    'currency' => 'sek',
    'memo' => 'transaction or order id or something else',
    'amount' => 10.01
])->send();

```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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://www.gravatar.com/avatar/e6f19f28c310cd20317137c7498379464fb988334738e5ff1fc609de8d8479ea?d=identicon)[alekserok](/maintainers/alekserok)

---

Top Contributors

[![alekserok](https://avatars.githubusercontent.com/u/8757388?v=4)](https://github.com/alekserok "alekserok (6 commits)")

### Embed Badge

![Health badge](/badges/alekserok-omnipay-payson/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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