PHP Класс Elcodi\Store\CartBundle\Controller\CheckoutController

Наследование: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Показать файл Открыть проект

Открытые методы

Метод Описание
addressAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid ) : Response Checkout address step
applyShippingMethodAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, string $shippingMethod ) : Response Checkout shipping range
paymentAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response Checkout payment step
paymentFailAction ( Elcodi\Component\User\Entity\Interfaces\CustomerInterface $customer, Elcodi\Component\Cart\Entity\Interfaces\OrderInterface $order ) : array Checkout payment fail action
saveAddressAction ( Request $request ) : Response Saves the billing and delivery address and redirects to the next page

Описание методов

addressAction() публичный Метод

Checkout address step
public addressAction ( Elcodi\Component\Geo\Entity\Interfaces\AddressInterface $address, Symfony\Component\Form\FormView $formView, boolean $isValid ) : Response
$address Elcodi\Component\Geo\Entity\Interfaces\AddressInterface The address being added
$formView Symfony\Component\Form\FormView The form
$isValid boolean If the processed form si valid
Результат Symfony\Component\HttpFoundation\Response

applyShippingMethodAction() публичный Метод

Checkout shipping range
public applyShippingMethodAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart, string $shippingMethod ) : Response
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
$shippingMethod string Shipping method
Результат Symfony\Component\HttpFoundation\Response Response

paymentAction() публичный Метод

Checkout payment step
public paymentAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
Результат Symfony\Component\HttpFoundation\Response Response

paymentFailAction() публичный Метод

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
Результат array

saveAddressAction() публичный Метод

Saves the billing and delivery address and redirects to the next page
public saveAddressAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request The current request
Результат Symfony\Component\HttpFoundation\Response