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

ActiveLibrary[Payment Processing](/categories/payments)

teepluss/epay
=============

Laravel Epay is payment gateway adapter.

1.0.1(10y ago)41251[1 issues](https://github.com/teepluss/laravel4-epay/issues)MITPHPPHP &gt;=5.3.0

Since Jun 29Pushed 10y ago4 watchersCompare

[ Source](https://github.com/teepluss/laravel4-epay)[ Packagist](https://packagist.org/packages/teepluss/epay)[ Docs](https://github.com/teepluss/laravel4-epay)[ RSS](/packages/teepluss-epay/feed)WikiDiscussions master Synced 2mo ago

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

Epay for Laravel 4
------------------

[](#epay-for-laravel-4)

Epay is deprecated. Please use the [Gateway](https://github.com/teepluss/laravel4-gateway)

Epay is payment gateway adapters.

### Installation

[](#installation)

- [Epay on Packagist](https://packagist.org/packages/teepluss/epay)
- [Epay on GitHub](https://github.com/teepluss/laravel4-epay)

To get the lastest version of Epay simply require it in your `composer.json` file.

```
"teepluss/epay": "dev-master"

```

You'll then need to run `composer install` to download it and have the autoloader updated.

Once Epay is installed you need to register the service provider with the application. Open up `app/config/app.php` and find the `providers` key.

```
'providers' => array(

    'Teepluss\Epay\EpayServiceProvider'

)

```

Epay also ships with a facade which provides the static syntax for creating collections. You can register the facade in the `aliases` key of your `app/config/app.php` file.

```
'aliases' => array(

    'Epay' => 'Teepluss\Epay\Facades\Epay'

)

```

Usage
-----

[](#usage)

Generate payment form.

```
$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setSuccessUrl('http://www.domain/foreground/success')
        ->setCancelUrl('http://www.domain/foreground/cancel')
        ->setBackendUrl('http://www.domain/background/invoice/00001');

$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setLanguage('TH')
        ->setCurrency('THB');

$adapter->setInvoice(00001)
        ->setPurpose('Buy a beer.')
        ->setAmount(100);

$adapter->setRemark('Short note');

$generated = $adapter->render();

var_dump($generated);
```

Checking foregound process.

```
$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setInvoice(00001);

$result = $adapter->getFrontendResult();

var_dump($result);
```

Checking background process (IPN)

```
$adapter = Epay::factory('paypal');

$adapter->setSandboxMode(true);

$adapter->setMerchantAccount('demo@gmail.com');

$adapter->setInvoice(00001);

$result = $adapter->getBackendResult();

var_dump($result);
```

Support or Contact
------------------

[](#support-or-contact)

If you have some problem, Contact

[![Support via PayPal](https://camo.githubusercontent.com/1c4c2a63b268ab949717893dda9628735444f61b8eb8eece283a534338b5b0e5/68747470733a2f2f7261776769746875622e636f6d2f63687269732d2d2d2f446f6e6174696f6e2d4261646765732f6d61737465722f70617970616c2e6a706567)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9GEC8J7FAG6JA)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Every ~1 days

Total

2

Last Release

3967d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98f73b54567183f49c41533fc0c05cfffccdf5ed4f0351e3065d62d14779d26f?d=identicon)[teepluss](/maintainers/teepluss)

---

Tags

laravelgatewaypaypallaravel4

### Embed Badge

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

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

###  Alternatives

[larabook/gateway

A Laravel package for connecting to all Iraninan payment gateways

24553.7k](/packages/larabook-gateway)

PHPackages © 2026

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