<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<p>
	<label class="frm-h-stack-xs" for="save_cc_<?php echo esc_attr( $field['id'] ); ?>">
		<span><?php esc_html_e( 'Credit Card Security', 'formidable-pro' ); ?></span>
		<?php
		FrmProAppHelper::tooltip_icon(
			__( 'By default, only the last four digits of a credit card number will be saved. We recommend that you save as little credit card information on your site as possible.', 'formidable-pro' ),
			array(
				'class' => 'frm-flex',
			)
		);
		?>
	</label>
	<select name="field_options[save_cc_<?php echo esc_attr( $field['id'] ); ?>]" id="save_cc_<?php echo esc_attr( $field['id'] ); ?>">
		<option value="4" <?php selected( $field['save_cc'], '4' ); ?>>
			<?php esc_html_e( 'Save only the last 4 digits', 'formidable-pro' ); ?>
		</option>
		<option value="0" <?php selected( $field['save_cc'], '0' ); ?>>
			<?php esc_html_e( 'Do not store the card number', 'formidable-pro' ); ?>
		</option>
		<option value="16" <?php selected( $field['save_cc'], '16' ); ?>>
			<?php esc_html_e( 'Store the whole card number (not recommended)', 'formidable-pro' ); ?>
		</option>
		<option value="-1" <?php selected( $field['save_cc'], '-1' ); ?>>
			<?php esc_html_e( 'Do not store or POST card values', 'formidable-pro' ); ?>
		</option>
	</select>
</p>
