/**
  * Initialise Gateway Settings Form Fields.
  *
  * @return void
  */
 public function init_form_fields()
 {
     $this->form_fields = array('enabled' => array('title' => __('Enable/Disable', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable Iugu Bank Slip', 'iugu-woocommerce'), 'default' => 'no'), 'title' => array('title' => __('Title', 'iugu-woocommerce'), 'type' => 'text', 'description' => __('This controls the title which the user sees during checkout.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => __('Bank Slip', 'iugu-woocommerce')), 'description' => array('title' => __('Description', 'iugu-woocommerce'), 'type' => 'textarea', 'description' => __('This controls the description which the user sees during checkout.', 'iugu-woocommerce'), 'default' => __('Pay with bank slip', 'iugu-woocommerce')), 'integration' => array('title' => __('Integration Settings', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'account_id' => array('title' => __('Account ID', 'iugu-woocommerce'), 'type' => 'text', 'description' => sprintf(__('Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>'), 'default' => '', 'custom_attributes' => array('required' => 'required')), 'api_token' => array('title' => __('API Token', 'iugu-woocommerce'), 'type' => 'text', 'description' => sprintf(__('Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>'), 'default' => '', 'custom_attributes' => array('required' => 'required')), 'payment' => array('title' => __('Payment Options', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'deadline' => array('title' => __('Deadline to pay the bank slip', 'iugu-woocommerce'), 'type' => 'number', 'description' => __('Number of days the customer will have to pay the bank slip.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => '5', 'custom_attributes' => array('step' => '1', 'min' => '1')), 'behavior' => array('title' => __('Integration Behavior', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'send_only_total' => array('title' => __('Send only the order total', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('If this option is enabled will only send the order total, not the list of items.', 'iugu-woocommerce'), 'default' => 'no'), 'testing' => array('title' => __('Gateway Testing', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'sandbox' => array('title' => __('Iugu Sandbox', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable Iugu Sandbox', 'iugu-woocommerce'), 'default' => 'no', 'description' => sprintf(__('Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>')), 'debug' => array('title' => __('Debug Log', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable logging', 'iugu-woocommerce'), 'default' => 'no', 'description' => sprintf(__('Log Iugu events, such as API requests, you can check this log in %s.', 'iugu-woocommerce'), WC_Iugu::get_log_view($this->id))));
 }
 /**
  * Initialise Gateway Settings Form Fields.
  */
 public function init_form_fields()
 {
     $this->form_fields = array('enabled' => array('title' => __('Enable/Disable', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable Iugu Credit Card', 'iugu-woocommerce'), 'default' => 'no'), 'title' => array('title' => __('Title', 'iugu-woocommerce'), 'type' => 'text', 'description' => __('This controls the title which the user sees during checkout.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => __('Credit Card', 'iugu-woocommerce')), 'description' => array('title' => __('Description', 'iugu-woocommerce'), 'type' => 'textarea', 'description' => __('This controls the description which the user sees during checkout.', 'iugu-woocommerce'), 'default' => __('Pay with credit card.', 'iugu-woocommerce')), 'integration' => array('title' => __('Integration Settings', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'account_id' => array('title' => __('Account ID', 'iugu-woocommerce'), 'type' => 'text', 'description' => sprintf(__('Please enter your Account ID. This is needed in order to take payment. Is possible found the Account ID in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>'), 'default' => '', 'custom_attributes' => array('required' => 'required')), 'api_token' => array('title' => __('API Token', 'iugu-woocommerce'), 'type' => 'text', 'description' => sprintf(__('Please enter your API Token. This is needed in order to take payment. Is possible generate a new API Token in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>'), 'default' => '', 'custom_attributes' => array('required' => 'required')), 'payment' => array('title' => __('Payment Options', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'installments' => array('title' => __('Number of credit card Installments', 'iugu-woocommerce'), 'type' => 'number', 'description' => __('The maximum number of installments allowed for credit cards. Put a number bigger than 1 to enable the field. This cannot be greater than the number allowed in your Iugu account.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => '1', 'custom_attributes' => array('step' => '1', 'min' => '1', 'max' => '12')), 'pass_interest' => array('title' => __('Pass interest rate', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Pass on the Installments interest to the customer.', 'iugu-woocommerce'), 'description' => __('This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => 'no'), 'free_interest' => array('title' => __('Free interest', 'iugu-woocommerce'), 'type' => 'number', 'description' => __('Indicate how many installments shall not bear interest, use 0 to disable this option.', 'iugu-woocommerce') . ' ' . __('This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => '0', 'custom_attributes' => array('step' => '1', 'min' => '0', 'max' => '12')), 'transaction_rate' => array('title' => __('Rate per transaction', 'iugu-woocommerce'), 'type' => 'number', 'description' => __('Enter here the transaction rate that is set up in your plan in Iugu.', 'iugu-woocommerce') . ' ' . __('This option is only for display and should represent what was configured on your Iugu account.', 'iugu-woocommerce'), 'desc_tip' => true, 'default' => '7', 'custom_attributes' => array('step' => 'any')), 'behavior' => array('title' => __('Integration Behavior', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'send_only_total' => array('title' => __('Send only the order total', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('If this option is enabled will only send the order total, not the list of items.', 'iugu-woocommerce'), 'default' => 'no'), 'testing' => array('title' => __('Gateway Testing', 'iugu-woocommerce'), 'type' => 'title', 'description' => ''), 'sandbox' => array('title' => __('Iugu Sandbox', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable Iugu Sandbox', 'iugu-woocommerce'), 'default' => 'no', 'description' => sprintf(__('Iugu Sandbox can be used to test the payments. <strong>Note:</strong> you must use the development API Token that can be created in %s.', 'iugu-woocommerce'), '<a href="https://iugu.com/settings/account" target="_blank">' . __('Iugu Account Settings', 'iugu-woocommerce') . '</a>')), 'debug' => array('title' => __('Debug Log', 'iugu-woocommerce'), 'type' => 'checkbox', 'label' => __('Enable logging', 'iugu-woocommerce'), 'default' => 'no', 'description' => sprintf(__('Log Iugu events, such as API requests, you can check this log in %s.', 'iugu-woocommerce'), WC_Iugu::get_log_view($this->id))));
 }