PHPackages                             karan-darji/omnipay-paysera - 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. karan-darji/omnipay-paysera

ActiveLibrary[Payment Processing](/categories/payments)

karan-darji/omnipay-paysera
===========================

Paysera gateway for Omnipay payment processing library

v1.0.0(2y ago)232MITPHP

Since Apr 30Pushed 2y ago1 watchersCompare

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

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

Omnipay: Paysera
================

[](#omnipay-paysera)

**Paysera gateway driver for the Omnipay PHP payment processing library**

[![Packagist Version](https://camo.githubusercontent.com/d07113016957fee8af618f80658dc3ece16ecc1a0a533aa945264ddf4811f6c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6172616e2d6461726a692f6f6d6e697061792d706179736572612e737667)](https://packagist.org/packages/karan-darji/omnipay-paysera)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

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

[](#installation)

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

```
composer require league/omnipay karan-darji/omnipay-paysera
```

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository.

Requirements
------------

[](#requirements)

- PHP 7.0+
- Omnipay v3+
- ext-openssl

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

[](#basic-usage)

The following gateways are provided by this package:

- Paysera

For general usage instructions, please see the main [Omnipay](https://github.com/thephpleague/omnipay) repository.

Code Example
------------

[](#code-example)

```
use Omnipay\Omnipay;

// Setup payment gateway
$gateway = Omnipay::create('Paysersa');
$gateway->setProjectId('123456');
$gateway->setPassword('abcde12345');

// Optionally to determine which order has been paid
$orderId = 1;

// Example card (actually customer) data
$card = [
    'email' => 'john.doe@example.com',
    'billingFirstName' => 'John',
    'billingLastName' => 'Doe',
    'billingPhone' => '+372 12345678',
    'billingCompany' => 'Good Workers Ltd.',
    'billingAddress1' => 'Viru valjak 24',
    'billingCity' => 'Tallinn',
    'billingPostcode' => '123456',
    'billingCountry' => 'EE',
];

// Send purchase request
$response = $gateway->purchase(
    [
        'language' => 'ENG',
        'transactionId' => $orderId,
        // 'paymentMethod' => 10,
        'amount' => '10.00',
        'currency' => 'EUR',
        'returnUrl' => "https://example.com/paysera/return/{$orderId}",
        'cancelUrl' => "https://example.com/paysera/cancel/{$orderId}",
        'notifyUrl' => "https://example.com/paysera/notify/{$orderId}",
        'card' => $card,
    ]
)->send();

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

You should also implement method for `notifyUrl`. After successful charging, Paysera sends a request to this URL.

```
use Omnipay\Omnipay;

// Setup payment gateway
$gateway = Omnipay::create('Paysersa');
$gateway->setProjectId('123456');
$gateway->setPassword('abcde12345');

// Accept the notification
$response = $gateway->acceptNotification()
    ->send();

if ($response->isSuccessful()) {
    // Mark the order as paid

    return true;
}
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

795d ago

### Community

Maintainers

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

---

Top Contributors

[![karan-darji](https://avatars.githubusercontent.com/u/14172802?v=4)](https://github.com/karan-darji "karan-darji (2 commits)")

---

Tags

paymentgatewaypaymerchantomnipaypurchasePaysera

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/karan-darji-omnipay-paysera/health.svg)

```
[![Health](https://phpackages.com/badges/karan-darji-omnipay-paysera/health.svg)](https://phpackages.com/packages/karan-darji-omnipay-paysera)
```

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

557422.8k11](/packages/lokielse-omnipay-alipay)

PHPackages © 2026

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