PHPackages                             vadimfilatov/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. vadimfilatov/paysera

ActiveLibrary[Payment Processing](/categories/payments)

vadimfilatov/paysera
====================

Paysera gateway for Omnipay payment processing library

1.0.0(2y ago)028MITPHP

Since Apr 4Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vadimfilatov/paysera)[ Packagist](https://packagist.org/packages/vadimfilatov/paysera)[ Docs](https://github.com/vadimfilatov/paysera)[ RSS](/packages/vadimfilatov-paysera/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

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

[](#omnipay-paysera)

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/b1b3fb3a70f806faf2ad2d2cf8cb381a72d9145dbc799f0a9eebc8819e659b54/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73656d796f6e63686574766572746e79682f6f6d6e697061792d706179736572612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/semyonchetvertnyh/omnipay-paysera)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/1a8bc05b00e3834c23aefde981c2e5d7f901937304f20e6b827193cce05d6718/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73656d796f6e63686574766572746e79682f6f6d6e697061792d706179736572612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/semyonchetvertnyh/omnipay-paysera)[![StyleCI](https://camo.githubusercontent.com/831dd10698b70610f7129d8ff9f2fd4e552412be6ab9030ceb15c612a9a028ec/68747470733a2f2f7374796c6563692e696f2f7265706f732f3137353431363733372f736869656c64)](https://styleci.io/repos/175416737)[![Quality Score](https://camo.githubusercontent.com/242e425424fbe6a7771eba34807795ab15538d9d86c1ca385d5f2128c9d9d2c7/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73656d796f6e63686574766572746e79682f6f6d6e697061792d706179736572612e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/semyonchetvertnyh/omnipay-paysera)[![Code Coverage](https://camo.githubusercontent.com/e700a910a12878100870b4fd680196bc67cf82669007fa9f69017d5cf24d424b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73656d796f6e63686574766572746e79682f6f6d6e697061792d706179736572612f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/semyonchetvertnyh/omnipay-paysera/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/0a805d20399899aa9cc975ba981598c69cb25296983485ba38883e4394e3f129/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656d796f6e63686574766572746e79682f6f6d6e697061792d706179736572612e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/semyonchetvertnyh/omnipay-paysera)

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

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

[](#installation)

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

```
composer require league/omnipay semyonchetvertnyh/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.

Credits
-------

[](#credits)

- [Povilas Susinskas](https://github.com/povilas)
- [Semyon Chetvertnyh](https://github.com/semyonchetvertnyh)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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

774d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6e529311b510984407bc8a54950862deb22cd085668b3983fdb2c00ec7f65227?d=identicon)[vadimfilatov](/maintainers/vadimfilatov)

---

Tags

paymentgatewaypaymerchantomnipaypurchasePaysera

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vadimfilatov-paysera/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

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

PHPackages © 2026

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