Ejemplo n.º 1
0
 /**
  * Initialise form fields
  */
 function init_form_fields()
 {
     parent::init_form_fields();
     $this->form_fields['enabled']['label'] = __('Enable Credit Card', 'pronamic_ideal');
     $this->form_fields['description']['default'] = '';
     $this->form_fields['icon']['default'] = plugins_url('images/credit-card/wc-icon.png', Pronamic_WP_Pay_Plugin::$file);
 }
Ejemplo n.º 2
0
 /**
  * Initialise form fields
  */
 function init_form_fields()
 {
     parent::init_form_fields();
     $this->form_fields['enabled']['label'] = __('Enable Direct Debit', 'pronamic_ideal');
     $this->form_fields['description']['default'] = '';
     $this->form_fields['icon']['default'] = '';
 }
Ejemplo n.º 3
0
 /**
  * Initialise form fields
  */
 function init_form_fields()
 {
     parent::init_form_fields();
     $this->form_fields['enabled']['label'] = __('Enable Bancontact/Mister Cash', 'pronamic_ideal');
     $this->form_fields['description']['default'] = '';
     $this->form_fields['icon']['default'] = plugins_url('images/mister-cash/wc-icon.png', Pronamic_WP_Pay_Plugin::$file);
 }
Ejemplo n.º 4
0
 /**
  * Payment fields
  *
  * @see https://github.com/woothemes/woocommerce/blob/v1.6.6/templates/checkout/form-pay.php#L66
  */
 function payment_fields()
 {
     // @see https://github.com/woothemes/woocommerce/blob/v1.6.6/classes/gateways/class-wc-payment-gateway.php#L181
     parent::payment_fields();
     $gateway = Pronamic_WP_Pay_Plugin::get_gateway($this->config_id);
     if ($gateway) {
         echo $gateway->get_input_html();
     }
 }