PHPackages                             codetech/laravel-eupago - 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. codetech/laravel-eupago

ActiveLibrary[Payment Processing](/categories/payments)

codetech/laravel-eupago
=======================

A Laravel package for making payments through the EuPago API.

v1.1.2(4y ago)3392MITPHPPHP ^7.3|^8.0

Since Jun 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/CodeTechAgency/laravel-eupago)[ Packagist](https://packagist.org/packages/codetech/laravel-eupago)[ RSS](/packages/codetech-laravel-eupago/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (0)

[![laravel-eupago-repo-banner](https://user-images.githubusercontent.com/17640929/161711354-03727be1-88cb-49df-ad58-494a61606e0b.png)](https://user-images.githubusercontent.com/17640929/161711354-03727be1-88cb-49df-ad58-494a61606e0b.png)

Laravel EuPago
==============

[](#laravel-eupago)

A Laravel package for making payments through the EuPago API.

[![Latest version](https://camo.githubusercontent.com/5fde63965e2292cc39229e750ff7ca24c39ccaf907fc7cc92a178b2fbcce792c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f436f6465546563684167656e63792f6c61726176656c2d65757061676f3f7374796c653d666c61742d737175617265)](https://github.com/CodeTechAgency/laravel-eupago/releases)[![GitHub license](https://camo.githubusercontent.com/a01e9e0bd15afee532c691ecf55901ba0588a93448447050c2cdfe47a2d4a7cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f436f6465546563684167656e63792f6c61726176656c2d65757061676f3f7374796c653d666c61742d737175617265)](https://github.com/CodeTechAgency/laravel-eupago/blob/master/LICENSE)

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

[](#installation)

Install the PHP dependency

```
composer require codetech/laravel-eupago

```

Publish the migration

```
php artisan vendor:publish --provider=CodeTech\\EuPago\\Providers\\EuPagoServiceProvider --tag=migrations

```

Run the migration

```
php artisan migrate

```

Publish the configuration file (optional)

```
php artisan vendor:publish --provider=CodeTech\\EuPago\\Providers\\EuPagoServiceProvider --tag=config

```

Publish the translations files (optional)

```
php artisan vendor:publish --provider=CodeTech\\EuPago\\Providers\\EuPagoServiceProvider --tag=translations

```

Configurations
--------------

[](#configurations)

### Environment

[](#environment)

There are two environments available for you to use: "test" and "prod". As you may have guessed, you can use the "test" environment during the development stage of your application. Switch to "prod" environment when your application is ready for production.

### MB References

[](#mb-references)

#### Usage

[](#usage)

For creating a MB reference, take the following example:

```
use CodeTech\EuPago\MB\MB;

$order = Order::find(1);

$mb = new MB(
    $order->value,
    $order->id,
    $order->date,
    $order->payment_limit_date,
    $order->value,
    $order->value,
    0 // allows duplicated payments
);

try {
    // Make the request to EUPago's API
    $mbReferenceData = $mb->create();

    if ($mb->hasErrors()) {
        // handle errors
    }

    // Make the request to EUPago's API
    $order->mbReferences()->create($mbReferenceData);
} catch (\Exception $e) {
    // handle exception
}

```

`$referenceData` will contain all the information about the payment:

```
[
    'success' => true,
    'state' => 0,
    'response' => "OK",
    'reference' => "000001236",
    'value' => "3.00000",
]

```

Use the trait on the models for which you want to generate MB references:

```

use CodeTech\EuPago\Traits\Mbable;

class Order extends Model
{
    use Mbable;

```

Retrieve the MB references:

```
$order = Order::find(1);

$mbReferences = $order->mbReferences;

```

#### Callback

[](#callback)

The package already handles the callback, updating the payment reference state and triggering an `MBWayReferencePaid` event.

```
GET

/eupago/mb/callback

```

\####Params

NameTypevalorfloatcanalstringreferenciastringtransacaostringidentificadorintegermpstringchave\_apistringdatadate timeentidadestringcomissaofloatlocalstring### MB Way References

[](#mb-way-references)

#### Usage

[](#usage-1)

Use the trait on the models for which you want to generate MB Way references:

```

use CodeTech\EuPago\Traits\Mbwayable;

class Order extends Model
{
    use Mbwayable;

```

Retrieve the MB Way references:

```
$order = Order::find(1);

$mbwayReferences = $order->mbwayReferences;

```

#### Callback

[](#callback-1)

The package already handles the callback, updating the payment reference state and triggering an `MBWayReferencePaid` event.

```
GET

/eupago/mbway/callback

```

\####Params

NameTypevalorfloatcanalstringreferenciastringtransacaostringidentificadorintegermpstringchave\_apistringdatadate timeentidadestringcomissaofloatlocalstring---

License
-------

[](#license)

**codetech/laravel-eupago** is open-sourced software licensed under the [MIT license](https://github.com/CodeTechAgency/laravel-eupago/blob/master/LICENSE).

About CodeTech
--------------

[](#about-codetech)

[CodeTech](https://www.codetech.pt) is a web development agency based on Matosinhos, Portugal. Oh, and we LOVE Laravel!

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~41 days

Total

8

Last Release

1674d ago

PHP version history (2 changes)v1.0.0PHP ^8.0

v1.0.3PHP ^7.3|^8.0

### Community

Maintainers

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

---

Top Contributors

[![jfrosorio](https://avatars.githubusercontent.com/u/17640929?v=4)](https://github.com/jfrosorio "jfrosorio (14 commits)")

---

Tags

laravelEupagocodetechmb referenceslaravel-eupagoreferências multibancombway references

### Embed Badge

![Health badge](/badges/codetech-laravel-eupago/health.svg)

```
[![Health](https://phpackages.com/badges/codetech-laravel-eupago/health.svg)](https://phpackages.com/packages/codetech-laravel-eupago)
```

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3991.8k](/packages/codewithdennis-larament)[glennraya/xendivel

A Laravel package to easily integrate Xendit payment gateway. It supports credit and debit cards, and e-wallet payments and custom invoices, queued notifications, webhook listeners and more.

442.7k](/packages/glennraya-xendivel)

PHPackages © 2026

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