Commit f424b1b8 by Yvon

debug doneAction multievent generation in recurring case

parent bed27879
......@@ -211,6 +211,24 @@ class PaymentController extends AbstractController
*/
public function doneAction(Request $request)
{
//As I don't understand why so many events are created here, I am just trying to
//canalyze the recurring paiement creations out of here without generating any event.
if($request->request->get('vads_page_action') === 'REGISTER_PAY_SUBSCRIBE')
{
if($request->request->get('vads_identifier_status') === 'CREATED') {
$this->addFlash(
'success',
$this->translator->trans('Cotisation payée et payment récurrent enregistré !')
);
} else {
$this->addFlash(
'error',
$this->translator->trans('Cotisation non payée et payement récurrent non enregistré.')
);
}
return $this->redirectToRoute('index');
}
try {
$token = $this->payum->getHttpRequestVerifier()->verify($request);
} catch (\Exception $e) {
......
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