Commit 742fbf03 by Damien Moulard

remove dev code

parent 08456dad
...@@ -60,7 +60,6 @@ class CaptureAction implements ActionInterface, GatewayAwareInterface, GenericTo ...@@ -60,7 +60,6 @@ class CaptureAction implements ActionInterface, GatewayAwareInterface, GenericTo
$request->getToken()->getDetails() $request->getToken()->getDetails()
); );
$model['vads_url_check'] = $notifyToken->getTargetUrl(); $model['vads_url_check'] = $notifyToken->getTargetUrl();
} }
} }
......
...@@ -132,8 +132,6 @@ class PaymentController extends AbstractController ...@@ -132,8 +132,6 @@ class PaymentController extends AbstractController
$this->em->persist($captureToken); $this->em->persist($captureToken);
$this->em->flush(); $this->em->flush();
// print_r($captureToken->getTargetUrl());
return $this->redirect($captureToken->getTargetUrl()); return $this->redirect($captureToken->getTargetUrl());
} }
...@@ -158,7 +156,6 @@ class PaymentController extends AbstractController ...@@ -158,7 +156,6 @@ class PaymentController extends AbstractController
if ($payment->getStatus() == GetHumanStatus::STATUS_NEW) { if ($payment->getStatus() == GetHumanStatus::STATUS_NEW) {
// No notification arrived at this point: execute Notify action // No notification arrived at this point: execute Notify action
// TODO: notify token isn't deleted (still?)
$gateway->execute(new Notify($token)); $gateway->execute(new Notify($token));
} else { } else {
// Invalidate token // Invalidate token
......
...@@ -32,20 +32,16 @@ class TAVCotisationUtils ...@@ -32,20 +32,16 @@ class TAVCotisationUtils
*/ */
public function checkExistingCotisation(Flux $flux) public function checkExistingCotisation(Flux $flux)
{ {
// FOR TESTS PURPOSES $first_day_this_month = date('Y-m-01');
return false; $last_day_this_month = date('Y-m-t');
// $first_day_this_month = date('Y-m-01');
// $last_day_this_month = date('Y-m-t');
// $existing = $this->em->getRepository(Flux::class)->getTavCotisationsBetweenDates( $existing = $this->em->getRepository(Flux::class)->getTavCotisationsBetweenDates(
// $flux->getDestinataire(), $flux->getDestinataire(),
// $first_day_this_month, $first_day_this_month,
// $last_day_this_month $last_day_this_month
// ); );
// return count($existing) > 0; return count($existing) > 0;
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment