public function notifyAction(Request $request)
    {
        $token = $this->getHttpRequestVerifier()->verify($request);

        $gateway = $this->getPayum()->getGateway($token->getGatewayName());

        $gateway->execute($notify = new Notify($token));

        /** @var \Ekyna\Component\Sale\Payment\PaymentInterface $payment */
        $payment = $notify->getFirstModel();

        $event = new PaymentEvent($payment);
        $this->getDispatcher()->dispatch(PaymentEvents::NOTIFY, $event);

        return new Response('', 204);
    }
public function notifyAction(Request $request)
    {
        $token = $this->getHttpRequestVerifier()->verify($request);

        $gateway = $this->getPayum()->getGateway($token->getGatewayName());

        $gateway->execute($notify = new Notify($token));

        /** @var \Ekyna\Component\Sale\Payment\PaymentInterface $payment */
        $payment = $notify->getFirstModel();

        $event = new PaymentEvent($payment);
        $this->getDispatcher()->dispatch(PaymentEvents::NOTIFY, $event);

        return new Response('', 204);
    }
public function notifyAction ( Request $ request ) { $ token = $ this -> getHttpRequestVerifier ( ) -> verify ( $ request ) ; $ gateway = $ this -> getPayum ( ) -> getGateway ( $ token -> getGatewayName ( ) ) ; $ gateway -> execute ( $ notify = new Notify ( $ token ) ) ; /** @var \Ekyna\Component\Sale\Payment\PaymentInterface $payment */ $ payment = $ notify -> getFirstModel ( ) ; $ event = new PaymentEvent ( $ payment ) ; $ this -> getDispatcher ( ) -> dispatch ( PaymentEvents :: NOTIFY , $ event ) ; return new Response ( '' , 204 ) ; }
Notify action.

@param Request $request
@return Response
Notify action .