Example #1
0
 /**
  * Initialise Gateway Settings Form Fields
  */
 public function init_form_fields()
 {
     parent::init_form_fields();
     $this->form_fields = array_merge($this->form_fields, array('expiry_days' => array('title' => __('Expiry date', 'mollie-payments-for-woocommerce'), 'type' => 'number', 'description' => sprintf(__('Number of days after the payment will expire. Default <code>%d</code> days', 'mollie-payments-for-woocommerce'), self::EXPIRY_DEFAULT_DAYS), 'default' => self::EXPIRY_DEFAULT_DAYS, 'custom_attributes' => array('min' => self::EXPIRY_MIN_DAYS, 'max' => self::EXPIRY_MAX_DAYS, 'step' => 1)), 'mail_payment_instructions' => array('title' => __('Mail payment instructions', 'mollie-payments-for-woocommerce'), 'label' => sprintf(__('Should Mollie automatically mail the payment instructions to the customer? Default <code>%s</code>', 'mollie-payments-for-woocommerce'), strtolower(__('Disabled', 'mollie-payments-for-woocommerce'))), 'type' => 'checkbox', 'default' => 'no', 'description' => __('If you disable this option the customer still has an option to send the payment instructions to an email address on the Mollie payment screen.', 'mollie-payments-for-woocommerce'), 'desc_tip' => true)));
 }