Skip to content

Commit

Permalink
replace mongopay by mangopay
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Oct 6, 2016
1 parent 80c620f commit 50c0a7c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace Troopers\MangopayBundle\Exception;

interface MongopayExceptionInterface
interface MangopayExceptionInterface
{
}
8 changes: 8 additions & 0 deletions Exception/MangopayPayInCreationException.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Troopers\MangopayBundle\Exception;

class MangopayPayInCreationException extends \Exception implements MangopayExceptionInterface
{

}
7 changes: 0 additions & 7 deletions Exception/MongopayPayInCreationException.php

This file was deleted.

2 changes: 1 addition & 1 deletion Helper/MangopayHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
use Symfony\Component\EventDispatcher\EventDispatcherInterface;

/**
* This class is an interface between raw MongoPay api object and symfony2.
* This class is an interface between raw Mangopay api object and symfony2.
* It is declared as a service with application wide "clientId", "clientPassword" and "baseUrl" parameters
* This service provides some shortcuts to interact with the api.
*
Expand Down
4 changes: 2 additions & 2 deletions Helper/PaymentHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Troopers\MangopayBundle\Event\CardRegistrationEvent;
use Troopers\MangopayBundle\Event\PayInEvent;
use Troopers\MangopayBundle\Event\PreAuthorisationEvent;
use Troopers\MangopayBundle\Exception\MongopayPayInCreationException;
use Troopers\MangopayBundle\Exception\MangopayPayInCreationException;
use Troopers\MangopayBundle\TroopersMangopayEvents;

/**
Expand Down Expand Up @@ -178,7 +178,7 @@ public function executePreAuthorisation(
$event = new PayInEvent($payIn);
$this->dispatcher->dispatch(TroopersMangopayEvents::ERROR_PAY_IN, $event);

throw new MongopayPayInCreationException($this->translator->trans(
throw new MangopayPayInCreationException($this->translator->trans(
'mangopay.error.'.$payIn->ResultCode,
[], 'messages'
));
Expand Down

0 comments on commit 50c0a7c

Please sign in to comment.