public function PaymentMethodForm()
 {
     $form = new CheckoutForm($this->owner, "PaymentMethodForm", $this->checkoutconfig());
     $form->setActions(new FieldList(FormAction::create("setpaymentmethod", "Continue")));
     $this->owner->extend('updatePaymentMethodForm', $form);
     return $form;
 }
 public function CouponForm()
 {
     $form = new CheckoutForm($this->owner, "CouponForm", $this->checkoutconfig());
     $form->setActions(new FieldList(FormAction::create("setcoupon", "Continue")));
     $this->owner->extend('updateCouponForm', $form);
     return $form;
 }
 public function BillingAddressForm()
 {
     $form = new CheckoutForm($this->owner, 'BillingAddressForm', $this->billingconfig());
     $form->setActions(new FieldList(new FormAction("setbillingaddress", "Continue")));
     $this->owner->extend('updateBillingAddressForm', $form);
     return $form;
 }
 public function CreateAccountForm()
 {
     $form = new CheckoutForm($this->owner, "CreateAccountForm", $this->registerconfig());
     $form->setActions(new FieldList(new FormAction('docreateaccount', 'Create New Account')));
     $form->getValidator()->addRequiredField("Password");
     $this->owner->extend('updateCreateAccountForm', $form);
     return $form;
 }
 public function ContactDetailsForm()
 {
     $cart = ShoppingCart::curr();
     if (!$cart) {
         return false;
     }
     $config = new CheckoutComponentConfig(ShoppingCart::curr());
     $config->addComponent(new CustomerDetailsCheckoutComponent());
     $form = new CheckoutForm($this->owner, 'ContactDetailsForm', $config);
     $form->setRedirectLink($this->NextStepLink());
     $form->setActions(new FieldList(new FormAction("checkoutSubmit", "Continue")));
     $this->owner->extend('updateContactDetailsForm', $form);
     return $form;
 }