1. Go to this page and download the library: Download troopers/mangopay-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
troopers / mangopay-bundle example snippets
$payIn = new PayIn();
$this->get('troopers_mangopay.mango_api')->PayIns->create($payIn);
$bankInformation = new BankInformation();
$this->get('troopers_mangopay.bank_information_helper')->createBankAccount($bankInformation);
$cardRegistration = new CardRegistration();
$this->get('troopers_mangopay.payment_helper')->createPreAuthorisation($cardRegistration);
$cardPreAuthorisation = new CardPreAuthorisation();
$this->get('troopers_mangopay.payment_helper')->executePreAuthorisation($cardPreAuthorisation, $user, $wallet);
$transaction = new Transaction();
$this->get('troopers_mangopay.payment_direct_helper')->createDirectTransaction($transaction);
$user = new User();
$this->get('troopers_mangopay.user_helper')->createMangoUser($user);
$user = new User();
$this->get('troopers_mangopay.wallet_helper')->createWalletForUser($user);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.