function gffd_fd_purchase_by_form($gffd_fd_form_info, $echo_or_as_object = false)
{
    // Don't continue if the needed
    // options are not setup.
    if (!gffd_is_setup()) {
        return gffd_fd_format_error_without_instance(__("Gateway ID or Gateway Password does not appear to be setup."));
    }
    // Get the options for the gateway id
    // and password.
    $gffd_fd_gateway_id = gffd_admin_get_setting('gffd_gateway_id');
    $gffd_fd_gateway_pass = gffd_admin_get_setting('gffd_gateway_password');
    $gffd_fd_test_mode = gffd_admin_get_setting('gffd_test_mode');
    // Make sure we (bool) the DB store
    // for test mode.
    if ($gffd_fd_test_mode == 'on') {
        $gffd_fd_test_mode = true;
    } else {
        $gffd_fd_test_mode = false;
    }
    // Setup the FirstData instance so we can use it
    // to process the payment.
    $fd_request = new FirstData($gffd_fd_gateway_id, $gffd_fd_gateway_pass, $gffd_fd_test_mode);
    // Make sure there is <something> in the cc_type field.
    if (!isset($gffd_fd_form_info['gffd_fd_cc_type'])) {
        $gffd_fd_form_info['gffd_fd_cc_type'] = '';
    }
    // Information on formatting: http://goo.gl/46V13c
    $gffd_fd_info = array('gffd_fd_cc_type' => gffd_fd_form_info('gffd_fd_cc_type', $gffd_fd_form_info), 'gffd_fd_cc_number' => gffd_fd_form_info('gffd_fd_cc_number', $gffd_fd_form_info), 'gffd_fd_cc_firstname' => current(explode(" ", gffd_fd_form_info('gffd_fd_cc_firstname', $gffd_fd_form_info))), 'gffd_fd_cc_lastname' => gffd_end(explode(" ", gffd_fd_form_info('gffd_fd_cc_firstname', $gffd_fd_form_info))), 'gffd_fd_cc_exp' => gffd_fd_form_info('gffd_fd_cc_exp', $gffd_fd_form_info), 'gffd_fd_cc_amount' => gffd_fd_form_info('gffd_fd_cc_amount', $gffd_fd_form_info), 'gffd_fd_cc_zip' => gffd_fd_form_info('gffd_fd_cc_zip', $gffd_fd_form_info), 'gffd_fd_cc_cvv' => gffd_fd_form_info('gffd_fd_cc_cvv', $gffd_fd_form_info), 'gffd_fd_cc_address' => gffd_fd_form_info('gffd_fd_cc_address', $gffd_fd_form_info) . " " . gffd_fd_form_info('gffd_fd_cc_address2', $gffd_fd_form_info) . "|" . gffd_fd_form_info('gffd_fd_cc_zip', $gffd_fd_form_info) . "|" . gffd_fd_form_info('gffd_fd_cc_city', $gffd_fd_form_info) . "|" . gffd_fd_form_info('gffd_fd_cc_state', $gffd_fd_form_info) . "|" . gffd_fd_form_info('gffd_fd_cc_country', $gffd_fd_form_info), 'gffd_fd_cc_address2' => '', 'gffd_fd_customer_ref' => gffd_fd_form_info('gffd_fd_customer_ref', $gffd_fd_form_info));
    $purchase_action_result = gffd_fd_perform_auth_purchase($fd_request, $gffd_fd_info);
    if ($echo_or_as_object === true || $echo_or_as_object == 'echo' || $echo_or_as_object == 'json') {
        echo json_encode($purchase_action_result);
    } elseif ($echo_or_as_object == 'as_original') {
        return $purchase_action_result;
    } else {
        return json_encode($purchase_action_result);
    }
}
    echo $setting_key;
    ?>
" 
	
								<?php 
    if ($setting['html_type'] != 'checkbox') {
        ?>
									value="<?php 
        echo gffd_admin_get_setting($setting_key);
        ?>
"
								<?php 
    } elseif (gffd_admin_get_setting($setting_key)) {
        ?>
									checked="checked" data-value="<?php 
        echo gffd_admin_get_setting($setting_key);
        ?>
"
								<?php 
    }
    ?>
							>
							<?php 
    if (isset($setting['html_close']) && $setting['html_close'] == true) {
        ?>
								</<?php 
        echo $setting['html_tag'];
        ?>
>
							<?php 
    }