Download the PHP package troopers/mangopay-bundle without Composer
On this page you can find all versions of the php package troopers/mangopay-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download troopers/mangopay-bundle
More information about troopers/mangopay-bundle
Files in troopers/mangopay-bundle
Package mangopay-bundle
Short Description This Bundle include Mangopay php sdk as a service
License MIT
Homepage http://troopers.agency
Informations about the package mangopay-bundle
MangopayBundle
Description
This bundle provides integration of the official SDK PHP for Mangopay api V2 into Symfony.
- This branch does support the v2.01 API version.
- The v1 branch does support the v2 API version.
Configuration
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".
Helpers
Additionnaly, there is some helpers that handle most of the mangopay actions. Feel free to fork and implement yours.
BankInformationHelper
It can register user BankInformations as it implements BankInformationInterface
PaymentHelper
It can register a CardPreauthorisation and execute it
PaymentDirectHelper
It can create a new direct payment
UserHelper
It can create a new user in mangopay as the User object implements the UserInterface
WalletHelper
It can create a user wallet
General workflow
This is the general workflow for the mangopay payment page:
- Displaying the payment form to user
- Create mangopay user and the card registration through mangopay API
- 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.
All versions of mangopay-bundle with dependencies
symfony/framework-bundle Version ~3.4|~4
mangopay/php-sdk-v2 Version >=2.0
stof/doctrine-extensions-bundle Version ~1.2
troopers/ajax-bundle Version ~1.2