PHP Class Elcodi\Store\CartBundle\Controller\CheckoutController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller, use trait Elcodi\Store\CoreBundle\Controller\Traits\TemplateRenderTrait
Mostrar archivo Open project: elcodi/bamboo

Public Methods

Method Description
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

Method Details

addressAction() public method

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
return Symfony\Component\HttpFoundation\Response

applyShippingMethodAction() public method

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
return Symfony\Component\HttpFoundation\Response Response

paymentAction() public method

Checkout payment step
public paymentAction ( Elcodi\Component\Cart\Entity\Interfaces\CartInterface $cart ) : Response
$cart Elcodi\Component\Cart\Entity\Interfaces\CartInterface Cart
return Symfony\Component\HttpFoundation\Response Response

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

saveAddressAction() public method

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
return Symfony\Component\HttpFoundation\Response