PHPackages                             orbitpodium/easypay - 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. orbitpodium/easypay

ActiveLibrary[Payment Processing](/categories/payments)

orbitpodium/easypay
===================

Laravel package for easypay.pt

19PHP

Since Jul 27Pushed 8y ago2 watchersCompare

[ Source](https://github.com/OrbitPodium/easypay)[ Packagist](https://packagist.org/packages/orbitpodium/easypay)[ RSS](/packages/orbitpodium-easypay/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Easypay for Laravel 5
=====================

[](#easypay-for-laravel-5)

Laravel Package to work with easypay API

Feature Overview
----------------

[](#feature-overview)

- Support MB and credit-card (VISA, MASTERCARD, AMERICAN-EXPRESS)
- Create reference
- Get payment notification in real time
- Get all payments
- and will be more ...

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

[](#installation)

Add this to your composer.json file, in the require object:

```
"OrbitPodium/easypay": "dev-master"
```

After that, run composer install to install the package. Add the service provider to `config/app.php`, within the `providers` array.

```
'providers' => array(
	// ...
	orbitpodium\easypay\EasypayServiceProvider::class,
)
```

Publish the config file.

```
php artisan vendor:publish

```

After this you might want change config file located at `config/easypay.php` with your credentials, etc

Lastly, run migrate to create `easypay_notifications` table

```
php artisan migrate

```

Usage
-----

[](#usage)

### Create a reference

[](#create-a-reference)

This code will ask easypay for a new reference which can be payed using MB or credit-card

```
$payment_info = [
            'o_name' => "Your name",
            'o_email' => 'Your email',
            't_value' => '29.00',
            'o_description' => 'Here is your description',
            'o_obs' => 'Here is your observations',
            'o_mobile' => 'Here is your mobile',
            't_key' => 'Here is the ID of your order'
    ];

$easypay = new EasyPay($payment_info);

$reference = $easypay->createReference();

if($reference["ep_status"] == "ok0"){
    $entidade=$reference["ep_entity"];
    $referencia=$reference["ep_reference"];
    $valor=$reference["ep_value"];

    return view('refMB', ['entidade'=>$entidade, 'referencia'=> $referencia, 'valor' => $valor]);
}
else{
    return view('erro');
}
```

This will return an array with the following :

```

Array
(
    [ep_status] => ok0
    [ep_message] => ep_country and ep_entity and ep_user and ep_cin ok and validation by code;code ok - new reference generated - NEW REFERENCE -
    [ep_cin] => your CIN
    [ep_user] => your USER
    [ep_entity] => your ENTITY
    [ep_reference] => generated REFERENCE
    [ep_value] => Asked value
    [t_key] => Order ID sent
    [ep_link] => Link to pay using credit-card
)

```

Now you can do what you want with this information, maybe you might want save to database to build user history payments.

### Method to receive notifications in real time

[](#method-to-receive-notifications-in-real-time)

When easypay get his payment they will call the URL that you provided to them which will execute a similiar method like below, for more details see ()

```
    $easypay = new EasyPay($request->input());

    $xml = $easypay->processPaymentInfo();

    return \Response::make($xml, '200')->header('Content-Type', 'text/xml');
```

This block of code will store into database the document number of the payment received from easypay, update with more info sent from them and return xml to easypay. (Step 4 : )

### Get all payments

[](#get-all-payments)

This will return an array with all of your payments from easypay

```
$easypay = new EasyPay();

$all_payments = $easypay->fetchAllPayments();
```

and thats it ....

### Credits

[](#credits)

Pedro Oliveira, Carlos Neto e Hugo Neto (kanazaca)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7ead859c3f92c080771c3fdad0e2940d9be7b0682e713e6487e5b283002ba66a?d=identicon)[OrbitPodium](/maintainers/OrbitPodium)

---

Tags

paymentphp

### Embed Badge

![Health badge](/badges/orbitpodium-easypay/health.svg)

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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