Commit 742fbf03 by Damien Moulard

remove dev code

parent 08456dad
......@@ -60,7 +60,6 @@ class CaptureAction implements ActionInterface, GatewayAwareInterface, GenericTo
$request->getToken()->getDetails()
);
$model['vads_url_check'] = $notifyToken->getTargetUrl();
}
}
......
......@@ -132,8 +132,6 @@ class PaymentController extends AbstractController
$this->em->persist($captureToken);
$this->em->flush();
// print_r($captureToken->getTargetUrl());
return $this->redirect($captureToken->getTargetUrl());
}
......@@ -158,7 +156,6 @@ class PaymentController extends AbstractController
if ($payment->getStatus() == GetHumanStatus::STATUS_NEW) {
// No notification arrived at this point: execute Notify action
// TODO: notify token isn't deleted (still?)
$gateway->execute(new Notify($token));
} else {
// Invalidate token
......
......@@ -32,20 +32,16 @@ class TAVCotisationUtils
*/
public function checkExistingCotisation(Flux $flux)
{
// FOR TESTS PURPOSES
return false;
// $first_day_this_month = date('Y-m-01');
// $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(
// $flux->getDestinataire(),
// $first_day_this_month,
// $last_day_this_month
// );
$existing = $this->em->getRepository(Flux::class)->getTavCotisationsBetweenDates(
$flux->getDestinataire(),
$first_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