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

ActiveLibrary

omnipay/epay
============

Epay Bg gateway for Omnipay payment processing library

11266PHP

Since Sep 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/vanssata/omnipay-epay)[ Packagist](https://packagist.org/packages/omnipay/epay)[ RSS](/packages/omnipay-epay/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: Epay
=============

[](#omnipay-epay)

**Epay 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 5.3+. This package implements Epay, EasyPay Bpay and more Bugarian online payment providers support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        //...
        "omnipay/epay": "1.2.*@dev",
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

\###The following gateways are provided by this package:

- Epay (Epay Chekcout)
- EasyPay (EasyPay check out provider)

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

BASIC USAGE
===========

[](#basic-usage)

### SEND DATA TO GATEWAY

[](#send-data-to-gateway)

```
use Omnipay\Omnipay;
$method = Epay; # Or Easypay
$gateway = Omnipay::create($method);
$gateway->setSignature('EapyKey');
$gateway->setMin('Eapy user');
$gateway->setReturnUrl('ecample.com/{successful}'); ##retunr url after success pay
$gateway->setCancelUrl('ecample.com/{reject}'); ##return url after recject pay
//For demo pack
$gateway->setTestMode(true);
//To generate transactionId/invoce we need basic function
$invoce = substr(number_format(time() * rand(), 0, '', ''), 0, 10);
$params =  $params = [
            'amount'        => $amount,
            'transactionId' => $invoice,
            'currency'      => $currency,
        ];
$response = $gateway->purchase($params)->send();

if ($response->isSuccessful()) {
    // only EasyPay get IDN
    echo($response->getRedirectData());
} elseif ($response->isRedirect()) {
    // redirect to epay payment gateway
    $response->redirect();
} else {
    // payment failed: display message to customer
    echo $response->getMessage();
}
```

### EPAY LISTENER

[](#epay-listener)

- Listener for return payment status

```
//Use only epay gateway
$gateway  = $gateway = Omnipay::create('epay');
$response = $gateway->capture($_POST)->send();
if ($response['invoice']) {
    if (isset($response['notify_text'])) {
        //This is requere to stop epay gateway sends data
        //Status of pyments is $response['status'];
        //
        echo $response['notify_text'];
    }
}
```

EPAY BG
-------

[](#epay-bg)

[EPAY BG DOCUMENTATION](https://www.epay.bg/en/?page=front&p=demo)

\##TODO

- Add funtion for expire data
- Add function for add description
- Add for more property

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/vanssata/omnipay-epay/issues), or better yet, fork the library and submit a pull request.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 63.6% 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/4180b0d965236f47306d3a0b27309b750e16d1f1d6c42c60276503fce3e413b7?d=identicon)[vanssata](/maintainers/vanssata)

---

Top Contributors

[![vanssata](https://avatars.githubusercontent.com/u/1220804?v=4)](https://github.com/vanssata "vanssata (7 commits)")[![rokasra](https://avatars.githubusercontent.com/u/6988736?v=4)](https://github.com/rokasra "rokasra (3 commits)")[![CuCTeMeH](https://avatars.githubusercontent.com/u/3748675?v=4)](https://github.com/CuCTeMeH "CuCTeMeH (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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