PHPackages                             facestorept/omnipay-ifthenpay - 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. facestorept/omnipay-ifthenpay

ActiveLibrary[Payment Processing](/categories/payments)

facestorept/omnipay-ifthenpay
=============================

Ifthenpay driver for the Omnipay PHP payment processing library

1.0.0(10y ago)0233[1 PRs](https://github.com/facestorept/omnipay-ifthenpay/pulls)MITPHP

Since Feb 11Pushed 7y ago1 watchersCompare

[ Source](https://github.com/facestorept/omnipay-ifthenpay)[ Packagist](https://packagist.org/packages/facestorept/omnipay-ifthenpay)[ Docs](https://www.ifthenpay.com)[ RSS](/packages/facestorept-omnipay-ifthenpay/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Ifthenpay gateway for Omnipay
=============================

[](#ifthenpay-gateway-for-omnipay)

[![Multibanco](https://raw.githubusercontent.com/ifthenpay/omnipay-ifthenpay/master/mb.png)](https://raw.githubusercontent.com/ifthenpay/omnipay-ifthenpay/master/mb.png)

**This is the Ifthenpay gateway for omnipay payment processing library**

[![Build Status](https://camo.githubusercontent.com/aa36a3b4360853f68367e11907822b9ec42cd87c0c26dcebb77cff23e9e87123/68747470733a2f2f7472617669732d63692e6f72672f69667468656e7061792f6f6d6e697061792d69667468656e7061792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ifthenpay/omnipay-ifthenpay)[![Latest Stable Version](https://camo.githubusercontent.com/269e35f3f1d4d9dea31ef6d40a3dba67b62ec974ad5420359a527f0f3fc6643c/68747470733a2f2f706f7365722e707567782e6f72672f69667468656e7061792f6f6d6e697061792d69667468656e7061792f762f737461626c65)](https://packagist.org/packages/ifthenpay/omnipay-ifthenpay) [![License](https://camo.githubusercontent.com/93f9193c3329846b3dc465865355dc05f197eec348e58b18b005848b23af8ebc/68747470733a2f2f706f7365722e707567782e6f72672f69667468656e7061792f6f6d6e697061792d69667468656e7061792f6c6963656e7365)](https://packagist.org/packages/ifthenpay/omnipay-ifthenpay)

Multibanco is one Portuguese payment method that allows the customer to pay by bank reference. This plugin will allow you to generate a payment Reference that the customer can then use to pay for his order on the ATM or Home Banking service. This plugin uses one of the several gateways/services available in Portugal, IfthenPay, and a contract with this company is required. See more at [Ifthenpay](https://ifthenpay.com).

### Composer Configuration

[](#composer-configuration)

Include the omnipay-ifthenpay package as a dependency in your `composer.json`:

```
"ifthenpay/omnipay-ifthen": "1.*"

```

### Installation

[](#installation)

Run `composer install` to download the dependencies.

### Usage

[](#usage)

**Create a MB Reference**

```
use Omnipay\Omnipay;

//you should use our own 50 char length key
$chaveAntiPhishing = "XXXXXX";

// Setup payment gateway
$gateway = Omnipay::create('Ifthenpay');

$gateway->setEntidade("XXXXX");
$gateway->setSubEntidade("XXX");
$gateway->setCurrency('EUR');
$gateway->setChaveAntiPhishing($chaveAntiPhishing);

$response = $gateway->purchase(['amount' => '100.99', 'transactionId' => '1'])->send();

if ($response->isSuccessful()) {
    // payment was successful: update database and store the transaction details
    $dadosMB = json_decode($response->getTransactionDetails());

    echo "Entidade: ".$dadosMB->entidade;
    echo "Referencia: ".$dadosMB->transactionReference;
    echo "Valor: ".$dadosMB->valor;
}
```

**Callback Validation**

```
$response = $gateway->completePurchase(array('transactionReference' => '995 000 109','amount' => '100.99','currency' => 'EUR', 'ChaveAntiPhishingCallback' => 'XXXXXX'))->send();

if ($response->isSuccessful())
{
    //Configured AntiPhishing key matches with the received AntiPhishing key
    //This means that the payment was made
    echo "Sucesso";
}
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

Unknown

Total

1

Last Release

3746d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0a847247ed576d6ca310f8b774188a9d402c885fec6636e5ba3357c72c42fd5a?d=identicon)[luciano-jr](/maintainers/luciano-jr)

---

Top Contributors

[![rafaelcpalmeida](https://avatars.githubusercontent.com/u/7630784?v=4)](https://github.com/rafaelcpalmeida "rafaelcpalmeida (7 commits)")[![iamlucianojr](https://avatars.githubusercontent.com/u/3333167?v=4)](https://github.com/iamlucianojr "iamlucianojr (1 commits)")

---

Tags

paymentgatewaypaymerchantomnipayifthenpay

### Embed Badge

![Health badge](/badges/facestorept-omnipay-ifthenpay/health.svg)

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

###  Alternatives

[lokielse/omnipay-alipay

Alipay gateway for Omnipay payment processing library

587421.0k11](/packages/lokielse-omnipay-alipay)[sudiptpa/omnipay-nabtransact

National Australia Bank (NAB) Transact driver for the Omnipay payment processing library.

1017.2k](/packages/sudiptpa-omnipay-nabtransact)[lucassmacedo/omnipay-mercadopago

MercadoPago gateway for OmniPay

154.6k](/packages/lucassmacedo-omnipay-mercadopago)

PHPackages © 2026

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