PHPackages                             hoya/masterpass-bundle - 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. hoya/masterpass-bundle

ActiveSymfony-bundle[Payment Processing](/categories/payments)

hoya/masterpass-bundle
======================

Masterpass Bundle

3.0.0(7y ago)01.7k1MITPHPPHP &gt;=7.0.0

Since Apr 30Pushed 7y ago1 watchersCompare

[ Source](https://github.com/marcoshoya/MasterpassBundle)[ Packagist](https://packagist.org/packages/hoya/masterpass-bundle)[ RSS](/packages/hoya-masterpass-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (17)Versions (6)Used By (0)

MasterpassBundle
================

[](#masterpassbundle)

This Symfony 2 bundle implements the backend calls for Masterpass V7 checkout - Standard and Express flows. For complete Masterpass docs, refer

[![Build Status](https://camo.githubusercontent.com/d1800d07d83ed64efeebae04efe6fcb31aaea756508e08835553370c3426499c/68747470733a2f2f7472617669732d63692e6f72672f6d6172636f73686f79612f4d61737465727061737342756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/marcoshoya/MasterpassBundle)[![Total Downloads](https://camo.githubusercontent.com/f0b32b8e89618c09d6f34ac8e35e0daa044e2c458d47ca3ee68c5329806c5129/68747470733a2f2f706f7365722e707567782e6f72672f686f79612f6d6173746572706173732d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/hoya/masterpass-bundle)[![Latest Stable Version](https://camo.githubusercontent.com/4182862ba37b4e68d37711946d19b3a0e17cf41ee0a1ec561d14d1f0778ed7e2/68747470733a2f2f706f7365722e707567782e6f72672f686f79612f6d6173746572706173732d62756e646c652f762f737461626c65)](https://packagist.org/packages/hoya/masterpass-bundle)

Install
-------

[](#install)

Add HoyaMasterpassBundle in your composer.json:

```
{
    "require": {
        "hoya/masterpass-bundle": "~3.0.0"
    }
}
```

Register the bundle in your appkernel.php file

```
return array(
   // ...
   new Hoya\MasterpassBundle\HoyaMasterpassBundle(),
   // ...
);
```

Setup your config.yml file

```
# app/config/config.yml

hoya_masterpass:
    production_mode: false
    checkoutidentifier: checkout_id
    keys:
        consumerkey: consumer_key_value
        keystorepath: "%kernel.root_dir%/cert/csr_file.p12"
        keystorepassword: changeit
```

Usage
-----

[](#usage)

You may follow some sample [code here](https://github.com/marcoshoya/MasterpassBundle/blob/master/Controller/CheckoutController.php)

Handling Errors
---------------

[](#handling-errors)

Any error which may happen while calling Masterpass APIs throws an Exception. Hence, it is highly recommended to use try / catch block In addition, you can check further details on symfony logs.

```
try {

    $payment = $this->get('hoya_masterpass_service')->getPaymentData($callback, '1234');

} catch (\Exception $e) {
    $this->get('session')->getFlashBag()->add('error', $e->getMessage());
}
```

Running the Tests
-----------------

[](#running-the-tests)

Install the [Composer](http://getcomposer.org/) `dev` dependencies:

```
php composer.phar install --dev

```

Then, run the test suite using [PHPUnit](https://github.com/sebastianbergmann/phpunit/):

```
./phpunit

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 98.3% 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 ~107 days

Total

5

Last Release

2878d ago

Major Versions

1.0.0 → 2.0.02017-04-30

2.0.2 → 3.0.02018-07-02

PHP version history (2 changes)1.0.0PHP &gt;=5.4.0

3.0.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6484905?v=4)[Marcos Lazarin](/maintainers/marcoshoya)[@marcoshoya](https://github.com/marcoshoya)

---

Top Contributors

[![marcoshoya](https://avatars.githubusercontent.com/u/6484905?v=4)](https://github.com/marcoshoya "marcoshoya (115 commits)")[![1ma](https://avatars.githubusercontent.com/u/1456708?v=4)](https://github.com/1ma "1ma (2 commits)")

---

Tags

symfonymastercardmasterpass

### Embed Badge

![Health badge](/badges/hoya-masterpass-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/hoya-masterpass-bundle/health.svg)](https://phpackages.com/packages/hoya-masterpass-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[lexik/translation-bundle

This bundle allows to import translation files content into the database and provide a GUI to edit translations.

4362.7M19](/packages/lexik-translation-bundle)[payum/payum-bundle

One million downloads of Payum already! Payum offers everything you need to work with payments. Check more visiting site.

59510.3M40](/packages/payum-payum-bundle)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

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