Skip to content

Commit

Permalink
Merge pull request #31 from Troopers/bugfix/mongopay-typo
Browse files Browse the repository at this point in the history
replace mongopay by mangopay
  • Loading branch information
paulandrieux authored Oct 6, 2016
2 parents bf95ae0 + f75de95 commit f1a5ed5
Show file tree
Hide file tree
Showing 28 changed files with 346 additions and 340 deletions.
12 changes: 6 additions & 6 deletions Controller/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

namespace Troopers\MangopayBundle\Controller;

use Troopers\MangopayBundle\TroopersMangopayEvents;
use Troopers\MangopayBundle\Entity\Order;
use Troopers\MangopayBundle\Event\OrderEvent;
use Troopers\MangopayBundle\Event\PreAuthorisationEvent;
use Troopers\MangopayBundle\Form\CardType;
use Troopers\MangopayBundle\OrderEvents;
use MangoPay\CardRegistration;
use MangoPay\PayIn;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Troopers\MangopayBundle\Entity\Order;
use Troopers\MangopayBundle\Event\OrderEvent;
use Troopers\MangopayBundle\Event\PreAuthorisationEvent;
use Troopers\MangopayBundle\Form\CardType;
use Troopers\MangopayBundle\OrderEvents;
use Troopers\MangopayBundle\TroopersMangopayEvents;

/**
* Manage payment.
Expand Down
6 changes: 3 additions & 3 deletions DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* This is the class that validates and merges configuration from your app/config files
* This is the class that validates and merges configuration from your app/config files.
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class}
*/
class Configuration implements ConfigurationInterface
{
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function getConfigTreeBuilder()
{
$treeBuilder = new TreeBuilder();
$rootNode = $treeBuilder->root('troopers_mangopay');

$rootNode
->children()
->booleanNode('debug_mode')->defaultValue(false)->end()
Expand Down
18 changes: 9 additions & 9 deletions DependencyInjection/TroopersMangopayExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

namespace Troopers\MangopayBundle\DependencyInjection;

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\Config\FileLocator;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Loader;
use Symfony\Component\HttpKernel\DependencyInjection\Extension;

/**
* This is the class that loads and manages your bundle configuration
* This is the class that loads and manages your bundle configuration.
*
* To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html}
*/
class TroopersMangopayExtension extends Extension
{
/**
* {@inheritDoc}
* {@inheritdoc}
*/
public function load(array $configs, ContainerBuilder $container)
{
Expand All @@ -24,10 +24,10 @@ public function load(array $configs, ContainerBuilder $container)

$loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.yml');
$container->setParameter('Troopers_mangopay.debug_mode', $config['debug_mode'] === true);
$container->setParameter('Troopers_mangopay.client_id', $config['client_id']);
$container->setParameter('Troopers_mangopay.client_password', $config['client_password']);
$container->setParameter('Troopers_mangopay.base_url', $config['base_url']);

$container->setParameter('Troopers_mangopay.debug_mode', $config['debug_mode'] === true);
$container->setParameter('Troopers_mangopay.client_id', $config['client_id']);
$container->setParameter('Troopers_mangopay.client_password', $config['client_password']);
$container->setParameter('Troopers_mangopay.base_url', $config['base_url']);
}
}
8 changes: 4 additions & 4 deletions Entity/BankInformationInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@

/**
* Defines mandatory methods BankInformation need to be used in Mango
* https://docs.mangopay.com/api-references/users/natural-users/
* https://docs.mangopay.com/api-references/users/natural-users/.
*/
interface BankInformationInterface
{
/**
* Author Mango Id
* Author Mango Id.
*
* @var string
*/
public function getAddress();

/**
* It represents the amount debited on the bank account of the Author.In cents so 100€ will be written like « Amount » : 10000
* DebitedFunds – Fees = CreditedFunds (amount received on wallet)
* DebitedFunds – Fees = CreditedFunds (amount received on wallet).
*
* @var string
*/
public function getIban();

}
Loading

0 comments on commit f1a5ed5

Please sign in to comment.