Elcodi\Store\CartBundle\Controller\CheckoutController::paymentFailAction PHP Method

paymentFailAction() public method

Checkout payment fail action
public paymentFailAction ( Elcodi\Component\User\Entity\Interfaces\CustomerInterface $customer, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order ) : array
$customer Elcodi\Component\User\Entity\Interfaces\CustomerInterface Customer
$order Elcodi\Component\Cart\Entity\Interfaces\OrderInterface Order
return array
    public function paymentFailAction(CustomerInterface $customer, OrderInterface $order)
    {
        /**
         * Checking if logged user has permission to see
         * this page
         */
        if ($order->getCustomer() != $customer) {
            throw $this->createAccessDeniedException();
        }
        return $this->renderTemplate('Pages:checkout-payment-fail.html.twig', ['order' => $order]);
    }