PHPackages                             troopers/mangopay-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. troopers/mangopay-bundle

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

troopers/mangopay-bundle
========================

This Bundle include Mangopay php sdk as a service

3.0.5(7y ago)2617.9k19[4 issues](https://github.com/Troopers/MangopayBundle/issues)MITPHPPHP ~5.5|~7

Since Oct 19Pushed 6y ago12 watchersCompare

[ Source](https://github.com/Troopers/MangopayBundle)[ Packagist](https://packagist.org/packages/troopers/mangopay-bundle)[ Docs](http://troopers.agency)[ RSS](/packages/troopers-mangopay-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (4)Versions (32)Used By (0)

[![Troopers](https://cloud.githubusercontent.com/assets/618536/18787530/83cf424e-81a3-11e6-8f66-cde3ec5fa82a.png)](http://troopers.agency/?utm_source=mangopaybundle&utm_medium=github&utm_campaign=OpenSource)

[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/troopers-MangopayBundle/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)[![License](https://camo.githubusercontent.com/b06b415020c196c55749cf3c7458bd8db5ffa847c473c21c95033f7b51c112b1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f74726f6f706572732f6d616e676f7061792d62756e646c652e737667)](https://packagist.org/packages/troopers/mangopay-bundle)[![Version](https://camo.githubusercontent.com/43acd803e0a80a57138852828ff8f8a44045a88ed718c5603a6a855e26744337/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74726f6f706572732f6d616e676f7061792d62756e646c652e737667)](https://packagist.org/packages/troopers/mangopay-bundle)[![Packagist DL](https://camo.githubusercontent.com/9553e168caa216c7f7a2c46ed0402aa5556d390a7d3d577213d0f65d8c05c1c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74726f6f706572732f6d616e676f7061792d62756e646c652e737667)](https://packagist.org/packages/troopers/mangopay-bundle)[![SensioLabsInsight](https://camo.githubusercontent.com/5904ed639cdc46a05678054f00647635e8613faa1216cd257717cf2fc93bb894/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f34383936623234632d373465652d343530362d386334632d3834326139633636306236362f6d696e692e706e67)](https://insight.sensiolabs.com/projects/4896b24c-74ee-4506-8c4c-842a9c660b66)[![Twitter Follow](https://camo.githubusercontent.com/59166962fed540cd620e598de1fd574503100e00b4bd601804f7ae222378f173/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f74726f6f706572736167656e63792e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f7725323054726f6f70657273)](https://twitter.com/troopersagency)
=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#)

MangopayBundle
==============

[](#mangopaybundle)

Description
-----------

[](#description)

This bundle provides integration of the official [SDK PHP for Mangopay api V2](https://github.com/Mangopay/mangopay2-php-sdk) into Symfony.

- This branch does support the [v2.01 API version](https://docs.mangopay.com/endpoints/v2.01).
- The v1 branch does support the [v2 API version](https://docs.mangopay.com/endpoints/v2).

Configuration
-------------

[](#configuration)

```
troopers_mangopay:
    client_id: your_mangopay_client_id
    client_password: your_mangopay_client_password
    base_url: your_mangopay_base_url
```

How to use it ?
---------------

[](#how-to-use-it-)

The official sdk provides a "MangoMapApi" class which is a shortcut to all the "tools" like "ApiPayIns", "ApiWallets", "ApiUsers"... You can access those "tools" through the service "troopers\_mangopay.mango\_api".

```
    $payIn = new PayIn();
    $this->get('troopers_mangopay.mango_api')->PayIns->create($payIn);
```

Helpers
-------

[](#helpers)

Additionnaly, there is some helpers that handle most of the mangopay actions. Feel free to fork and implement yours.

### BankInformationHelper

[](#bankinformationhelper)

It can register user BankInformations as it implements BankInformationInterface

```
    $bankInformation = new BankInformation();
    $this->get('troopers_mangopay.bank_information_helper')->createBankAccount($bankInformation);
```

### PaymentHelper

[](#paymenthelper)

It can register a CardPreauthorisation and execute it

```
    $cardRegistration = new CardRegistration();
    $this->get('troopers_mangopay.payment_helper')->createPreAuthorisation($cardRegistration);

    $cardPreAuthorisation = new CardPreAuthorisation();
    $this->get('troopers_mangopay.payment_helper')->executePreAuthorisation($cardPreAuthorisation, $user, $wallet);
```

### PaymentDirectHelper

[](#paymentdirecthelper)

It can create a new direct payment

```
    $transaction = new Transaction();
    $this->get('troopers_mangopay.payment_direct_helper')->createDirectTransaction($transaction);
```

### UserHelper

[](#userhelper)

It can create a new user in mangopay as the User object implements the UserInterface

```
    $user = new User();
    $this->get('troopers_mangopay.user_helper')->createMangoUser($user);
```

### WalletHelper

[](#wallethelper)

It can create a user wallet

```
    $user = new User();
    $this->get('troopers_mangopay.wallet_helper')->createWalletForUser($user);
```

General workflow
----------------

[](#general-workflow)

This is the general workflow for the mangopay payment page:

1. Displaying the payment form to user

[![Step 1](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step1.jpg)](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step1.jpg)

2. Create mangopay user and the card registration through mangopay API

[![Step 2](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step2.jpg)](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step2.jpg)

3. Call the tokenisation server to validate the user credit card, use 3d secure if needed, update the CardR egistration with tokenized Card, create the PreAuthorisation then redirect the user to success page. [![Step 3](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step3.jpg)](https://raw.githubusercontent.com/Troopers/MangopayBundle/master/Resources/doc/assets/step3.jpg)

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 77.1% 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 ~45 days

Recently: every ~59 days

Total

30

Last Release

2604d ago

Major Versions

1.2.3 → 2.0.32016-09-26

1.2.5 → 2.0.42016-10-13

1.2.6 → 2.0.52017-04-29

1.2.9 → 2.0.82017-09-27

1.3.1 → 3.0.02018-09-20

PHP version history (3 changes)1.0PHP &gt;=5.0.0

1.2.3PHP ~5.3|~7

3.0.5PHP ~5.5|~7

### Community

Maintainers

![](https://www.gravatar.com/avatar/bfae4f0954a577921be2539b40a1f1958376f5c7364505e1e238e232ba8066d9?d=identicon)[paulandrieux](/maintainers/paulandrieux)

![](https://avatars.githubusercontent.com/u/618536?v=4)[Leny BERNARD](/maintainers/lenybernard)[@lenybernard](https://github.com/lenybernard)

---

Top Contributors

[![paulandrieux](https://avatars.githubusercontent.com/u/1942078?v=4)](https://github.com/paulandrieux "paulandrieux (121 commits)")[![allan-simon](https://avatars.githubusercontent.com/u/213167?v=4)](https://github.com/allan-simon "allan-simon (9 commits)")[![lenybernard](https://avatars.githubusercontent.com/u/618536?v=4)](https://github.com/lenybernard "lenybernard (7 commits)")[![Charlie-Lucas](https://avatars.githubusercontent.com/u/6369470?v=4)](https://github.com/Charlie-Lucas "Charlie-Lucas (6 commits)")[![BFoucher](https://avatars.githubusercontent.com/u/16239924?v=4)](https://github.com/BFoucher "BFoucher (3 commits)")[![alexandre-abrioux](https://avatars.githubusercontent.com/u/16711696?v=4)](https://github.com/alexandre-abrioux "alexandre-abrioux (2 commits)")[![alexislefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexislefebvre "alexislefebvre (2 commits)")[![alexisLefebvre](https://avatars.githubusercontent.com/u/2071331?v=4)](https://github.com/alexisLefebvre "alexisLefebvre (2 commits)")[![aslafy-z](https://avatars.githubusercontent.com/u/8191198?v=4)](https://github.com/aslafy-z "aslafy-z (2 commits)")[![MatthieuCutin](https://avatars.githubusercontent.com/u/12746178?v=4)](https://github.com/MatthieuCutin "MatthieuCutin (1 commits)")[![mrkisch](https://avatars.githubusercontent.com/u/19224748?v=4)](https://github.com/mrkisch "mrkisch (1 commits)")[![carlowens](https://avatars.githubusercontent.com/u/346840?v=4)](https://github.com/carlowens "carlowens (1 commits)")

---

Tags

mangopaymangopay-apisymfonysymfony-bundletroopersmangopay

### Embed Badge

![Health badge](/badges/troopers-mangopay-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

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

8.5k5.8M717](/packages/sylius-sylius)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[sulu/skeleton

Project template for starting your new project based on the Sulu content management system

29734.8k](/packages/sulu-skeleton)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26402.1k8](/packages/sylius-taxonomy-bundle)[sylius/product-bundle

Product catalog for your Symfony applications.

16338.6k15](/packages/sylius-product-bundle)

PHPackages © 2026

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