public function on_start()
 {
     $this->currentCart = CartObject::getCurrentCart();
     $this->set('cart', $this->currentCart);
     $this->set('order', $this->currentCart);
     $this->set('displayMode', 'full');
     $checkout = new CheckoutObject();
     $this->set('checkout', $checkout);
     Session::set('rcID', '/checkout');
     $this->requireAsset('css', 'fs_stepper_css');
     $this->requireAsset('css', 'razor_cart');
     $this->requireAsset('css', 'razor_checkout');
     $this->requireAsset('css', 'razor_css');
     $this->requireAsset('javascript', 'razor_js_paths');
     $this->requireAsset('javascript', 'fs_stepper_js');
     $this->requireAsset('javascript', 'jquery_validate');
     // payment setup
     $payment_methods = Payment::getMethods();
     foreach ($payment_methods as $payment_method) {
         $payment_method->setup($this);
     }
     $this->set('payment_methods', $payment_methods);
     $this->requireAsset('javascript', 'razor_cart');
     $this->requireAsset('javascript', 'razor_checkout');
     $this->requireAsset('javascript', 'razor_js');
 }
 public function on_start()
 {
     // this should all be set from the donation package, called from the PageType library class
     $this->currentCart = CartObject::getCurrentCart();
     $this->set('cart', $this->currentCart);
     $this->set('order', false);
     $this->set('displayMode', 'minimal');
     $checkout = new CheckoutObject();
     $this->set('checkout', $checkout);
     Session::set('rcID', '/checkout');
     $this->requireAsset('css', 'fs_stepper_css');
     $this->requireAsset('css', 'razor_css');
     $this->requireAsset('javascript', 'razor_js_paths');
     $this->requireAsset('javascript', 'fs_stepper_js');
     $this->requireAsset('javascript', 'jquery_validate');
     // payment setup
     $payment_methods = Payment::getMethods();
     foreach ($payment_methods as $payment_method) {
         $payment_method->setup($this);
     }
     $this->set('payment_methods', $payment_methods);
     $this->requireAsset('javascript', 'razor_js');
 }
 public function loadPaymentMethods()
 {
     return PaymentClass::getMethods();
 }