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

AbandonedArchivedLibrary[Payment Processing](/categories/payments)

rafaeltpires/omnipay-eupago
===========================

EuPago driver for Omnipay payment processing library

2371PHP

Since Sep 16Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Omnipay: EuPago
===============

[](#omnipay-eupago)

**WARNING:** Still WIP - Usable, but with caution!

**EuPago 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. This package implements PayPal support for Omnipay.

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

[](#installation)

Omnipay is installed via [Composer](http://getcomposer.org/). To install, simply require `league/omnipay` and `rafaeltpires/omnipay-eupago` with Composer:

```
composer require league/omnipay rafaeltpires/omnipay-eupago

```

Basic Usage
-----------

[](#basic-usage)

The following payments are provided by this package:

- Multibanco
- MBWay
- Credit Card

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

Quirks
------

[](#quirks)

The transaction reference obtained from the purchase() response can't be used to refund a purchase. The transaction reference from the completePurchase() response is the one that should be used.

Support
-------

[](#support)

If you believe you have found a bug, please report it using the [GitHub issue tracker](https://github.com/rafaeltpires/omnipay-eupago/issues), or better yet, fork the library and submit a pull request.

Usage
-----

[](#usage)

### Multibanco

[](#multibanco)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('EuPago\Multibanco');

$formData = [
    'key' => 'demo-008c-5a63-8245-40e',     // Required
    'amount' => '125.15',                   // Required
    'id' => 'identifier',                   // Optional
    'clientEmail' => 'jdoe@example.dev',    // Optional
    'clientPhone' => '912345678',           // Optional
    'perDup' => 0,                          // Required
    'startDate' => '2023-09-16',            // Optional
    'endDate' => '2023-10-15',              // Optional
    'maxAmount' => 0.0,                     // Optional
    'minAmount' => 0.0,                     // Optional
    'failOver' => 0,                        // Optional
    'extraFields' => [                      // Optional
        'id' => 564,
        'valor' => 'my-custom-id'
    ],
    'testMode'       => true                // Optional
];

$response = $gateway->purchase($formData)->send();

if($response->isSuccessful()) {
    echo $response->getReference() . "";
    echo $response->getEntity() . "";
    echo $response->getAmount() . "";
    echo $response->getMaxValue() . "";
    echo $response->getMinValue() . "";
    echo $response->getEndDate() . "";
    echo $response->getStartDate() . "";
}
```

### MBWay

[](#mbway)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('EuPago\MBWay');

$formData = [
    'key' => 'xxxx-xxxx-xxxx-xxx',          // Required
    'amount' => '125.25',                   // Required
    'clientPhone' => '912345678',           // Optional
    'id' => 'identifier',                   // Optional
    'clientEmail' => 'jdoe@example.dev',    // Optional
    'failOver' => 1,                        // Optional
    'description' => 'MyCoolStore',         // Optional
    'paymentPhone' => '912345678',          // Required
    'testMode' => true                      // Optional
];

$response = $gateway->purchase($formData)->send();

if($response->isSuccessful()) {
    echo $response->getReference() . "";
    echo $response->getMessage() . "";
    echo $response->getAmount() . "";
}
```

### Credit Card

[](#credit-card)

```
use Omnipay\Omnipay;

$gateway = Omnipay::create('EuPago\Card');

$formData = [
    'key' => 'xxxx-xxxx-xxxx-xxx',          // Required
    'currency' => 'EUR',                    // Required
    'amount' => '125.15',                   // Required
    'id' => 'identifier',                   // Optional
    'successUrl' => 'https://success.test', // Required
    'errorUrl' => 'https://error.test',     // Required
    'cancelUrl' => 'https://cancel.test',   // Required
    'notify' => 1,                          // Required
    'language' => 'PT',                     // Required
    'clientEmail' => 'jdoe@example.dev',    // Required
    'testMode' => true,                     // Optional
];

$response = $gateway->purchase($formData)->send();

if($response->isSuccessful()) {
    header('Location: ' . $response->getRedirectUrl());
}
```

Props
-----

[](#props)

Adapted from [Stowify/omnipay-ifthenpay](https://github.com/Stowify/omnipay-ifthenpay) 👌

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/08f5d7855b7f2096b85b921da855617dcfdb157d1b3fb88e5241ae382665eb93?d=identicon)[rafaeltpires](/maintainers/rafaeltpires)

---

Top Contributors

[![rafaeltpires](https://avatars.githubusercontent.com/u/21269035?v=4)](https://github.com/rafaeltpires "rafaeltpires (1 commits)")

### Embed Badge

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

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

###  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)
