Sonata\PaymentBundle\Controller\PaymentController::callbackAction PHP Method

callbackAction() public method

this action handler the callback sent from the bank.
public callbackAction ( ) : Symfony\Bundle\FrameworkBundle\Controller\Response
return Symfony\Bundle\FrameworkBundle\Controller\Response
    public function callbackAction()
    {
        try {
            $response = $this->getPaymentHandler()->getPaymentCallbackResponse($this->getRequest());
        } catch (EntityNotFoundException $ex) {
            throw new NotFoundHttpException($ex->getMessage());
        } catch (InvalidTransactionException $ex) {
            throw new UnauthorizedHttpException($ex->getMessage());
        }
        return $response;
    }