/** * _update_payment_method_button * * @access protected * @param \EE_Payment_Method $payment_method * @return \EE_Form_Section_HTML */ protected function _payment_method_settings(EE_Payment_Method $payment_method) { //modify the form so we only have/show fields that will be implemented for this version return $this->_simplify_form($payment_method->type_obj()->settings_form(), $payment_method->name()); }
/** * _get_billing_form_for_payment_method * * @access private * @param EE_Payment_Method $payment_method * @return \EE_Billing_Info_Form */ private function _get_billing_form_for_payment_method(EE_Payment_Method $payment_method) { $billing_form = $payment_method->type_obj()->billing_form($this->checkout->transaction, array('amount_owing' => $this->checkout->amount_owing)); if ($billing_form instanceof EE_Billing_Info_Form) { if (EE_Registry::instance()->REQ->is_set('payment_method')) { if (apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options__registration_checkout__selected_payment_method__display_success', false)) { EE_Error::add_success(apply_filters('FHEE__Single_Page_Checkout__registration_checkout__selected_payment_method', sprintf(__('You have selected "%s" as your method of payment. Please note the important payment information below.', 'event_espresso'), $payment_method->name()))); } } return apply_filters('FHEE__EE_SPCO_Reg_Step_Payment_Options___get_billing_form_for_payment_method__billing_form', $billing_form, $payment_method); } // no actual billing form, so return empty HTML form section return new EE_Form_Section_HTML(); }