/** * _display_payment_options * * @param string $transaction_details * @return \EE_Form_Section_Proper */ private function _display_payment_options($transaction_details = '') { // has method_of_payment been set by no-js user? $this->checkout->selected_method_of_payment = $this->_get_selected_method_of_payment(); // build payment options form return apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___display_payment_options__payment_options_form', new EE_Form_Section_Proper(array('subsections' => array('before_payment_options' => apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___display_payment_options__before_payment_options', new EE_Form_Section_Proper(array('layout_strategy' => new EE_Div_Per_Section_Layout()))), 'payment_options' => $this->_setup_payment_options(), 'after_payment_options' => apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___display_payment_options__after_payment_options', new EE_Form_Section_Proper(array('layout_strategy' => new EE_Div_Per_Section_Layout()))), 'default_hidden_inputs' => $this->reg_step_hidden_inputs(), 'extra_hidden_inputs' => $this->_extra_hidden_inputs(FALSE)), 'layout_strategy' => new EE_Template_Layout(array('layout_template_file' => $this->_template, 'template_args' => apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___display_payment_options__template_args', array('reg_count' => $this->line_item_display->total_items(), 'transaction_details' => $transaction_details, 'available_payment_methods' => array()))))))); }
/** * _display_payment_options * * @param string $transaction_details * @return \EE_Form_Section_Proper */ private function _display_payment_options($transaction_details = '') { // reset in case someone changes their mind $this->_reset_selected_method_of_payment(); // has method_of_payment been set by no-js user? $this->checkout->selected_method_of_payment = $this->_get_selected_method_of_payment(); // build payment options form return new EE_Form_Section_Proper(array('subsections' => array('payment_options' => $this->_setup_payment_options(), 'default_hidden_inputs' => $this->reg_step_hidden_inputs(), 'extra_hidden_inputs' => $this->_extra_hidden_inputs(FALSE)), 'layout_strategy' => new EE_Template_Layout(array('layout_template_file' => SPCO_TEMPLATES_PATH . $this->slug() . DS . 'payment_options_main.template.php', 'template_args' => apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___payment_options__template_args', array('reg_count' => $this->Line_Item_Display->total_items(), 'transaction_details' => $transaction_details, 'available_payment_methods' => array())))))); }