| Server IP : 68.183.124.220 / Your IP : 216.73.216.141 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/gavin/ninja-forms/includes/Config/ |
Upload File : |
<?php if ( ! defined( 'ABSPATH' ) ) exit;
return apply_filters( 'ninja_forms_action_collect_payment_settings', array(
/*
|--------------------------------------------------------------------------
| Payment Gateways
|--------------------------------------------------------------------------
*/
'payment_gateways' => array(
'name' => 'payment_gateways',
'type' => 'select',
'label' => __( 'Payment Gateways', 'ninja-forms' ),
'options' => array(
array(
'label' => '--',
'value' => ''
),
),
'value' => '',
'width' => 'full',
'group' => 'primary',
),
/*
|--------------------------------------------------------------------------
| Payment Type
|--------------------------------------------------------------------------
*/
//building the payment type selector box
'payment_total_type' => array(
'name' => 'payment_total_type',
'type' => 'select',
'label' => __( 'Get Total From', 'ninja-forms' ),
'width' => 'one-half',
'group' => 'primary',
'options' => array(
array( 'label' => __( '- Select One', 'ninja-forms' ), 'value' => '' ),
array( 'label' => __( 'Calculation', 'ninja-forms' ), 'value' => 'calc' ),
array( 'label' => __( 'Field', 'ninja-forms' ), 'value' => 'field' ),
array( 'label' => __( 'Fixed Amount', 'ninja-forms' ), 'value' => 'fixed' ),
),
),
//building the calc selector.
'payment_total_calc' => array(
'name' => 'payment_total',
'total_type' => 'calc',
'type' => 'select',
'label' => __( 'Select Calculation', 'ninja-forms' ),
'width' => 'one-half',
'group' => 'primary',
'deps' => array(
'payment_total_type' => 'calc',
),
'default_options' => array(
'label' => __( '- Select One', 'ninja-forms' ),
'value' => '0',
),
'use_merge_tags' => TRUE,
),
//building the field selector.
'payment_total_field' => array(
'name' => 'payment_total',
'total_type' => 'field',
'type' => 'select',
'label' => __( 'Select Field', 'ninja-forms' ),
'width' => 'one-half',
'group' => 'primary',
'deps' => array(
'payment_total_type' => 'field',
),
'default_options' => array(
'label' => __( '- Select One', 'ninja-forms' ),
'value' => '0',
),
'use_merge_tags' => TRUE,
),
//building the field selector.
'payment_total_fixed' => array(
'name' => 'payment_total',
'total_type' => 'fixed',
'type' => 'textbox',
'label' => __( 'Enter Amount', 'ninja-forms' ),
'width' => 'one-half',
'group' => 'primary',
'value' => '0',
'deps' => array(
'payment_total_type' => 'fixed',
),
),
));