PHPackages                             gentor/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. [Payment Processing](/categories/payments)
4. /
5. gentor/omnipay-epay

ActiveLibrary[Payment Processing](/categories/payments)

gentor/omnipay-epay
===================

Epay Bg gateway for Omnipay payment processing library

06.8k1PHP

Since Jun 1Pushed 8y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#omnipay-epay)

**ePay.bg 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 run:

```
composer require gentor/omnipay-epay

```

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

[](#the-following-gateways-are-provided-by-this-package)

- [Epay (Epay Chekcout)](https://www.epay.bg/v3main/front?lang=en)
- [EasyPay Payment Services](https://www.easypay.bg/site/en/)

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

Basic Usage
===========

[](#basic-usage)

### Purchase

[](#purchase)

```
use Omnipay\Omnipay;

$provider = Epay; # Or Easypay
$gateway = Omnipay::create($provider);
$gateway->setMin('Epay Merchant Id');
$gateway->setSignature('Epay Signature');

$response = $gateway->purchase(
    [
        'amount' => '10.00', // BGN
        'transactionId' => 'Unique ID in your system',
        'returnUrl' => 'your.site.com/return',
        'cancelUrl' => 'your.site.com/cancel',
    ]
)->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();
}
```

### Webhook

[](#webhook)

- Listener for payment status

```
//Use only epay gateway
$gateway = Omnipay::create('Epay');
$gateway->setMin('Epay Merchant Id');
$gateway->setSignature('Epay Signature');

$response = $gateway->acceptNotification()->send();

if ($response->isSuccessful()) {
    $status = $response->getTransactionStatus();
    // Response is required for epay gateway to stop sending data
    echo $response->getData()['notify_text'];
} else {
    // Response is required for epay gateway to stop sending data
    echo $response->getData()['notify_text'];
}
```

### [ePay.bg Documentation](https://www.epay.bg/v3main/front?p=mrcs_tech)

[](#epaybg-documentation)

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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/210fd495e96c05caab1d50c09165794ff73175a9b49c43f91df0c8524dfa8add?d=identicon)[gentor](/maintainers/gentor)

---

Top Contributors

[![vanssata](https://avatars.githubusercontent.com/u/1220804?v=4)](https://github.com/vanssata "vanssata (7 commits)")[![gentor](https://avatars.githubusercontent.com/u/2902504?v=4)](https://github.com/gentor "gentor (6 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/gentor-omnipay-epay/health.svg)

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

###  Alternatives

[omnipay/coinbase

Coinbase driver for the Omnipay payment processing library

18570.2k1](/packages/omnipay-coinbase)

PHPackages © 2026

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