# formidable/trunk/stripe/views/action-settings/gateway-buttons.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version trunk. 47 lines.

- Page: https://pluginprobe.com/plugins/formidable/trunk/code/stripe/views/action-settings/gateway-buttons.php
- Raw: https://pluginprobe.com/plugins/formidable/trunk/raw/stripe/views/action-settings/gateway-buttons.php
- Modified: 2026-05-27T15:12:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/trunk/code/stripe/views/action-settings/gateway-buttons.php#L10-L20`.

```php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	die( 'You are not allowed to call this page directly.' );
}
?>
<div class="frm-long-icon-buttons" role="tablist">
<?php
foreach ( $gateways as $gateway_name => $gateway ) {
	$is_active       = in_array( $gateway_name, (array) $form_action->post_content['gateway'], true );
	$name            = $gateway['label'] ?? ucfirst( $gateway_name );
	$gateway_classes = $gateway['recurring'] ? '' : 'frm_gateway_no_recur';

	if ( $form_action->post_content['type'] === 'recurring' && ! $gateway['recurring'] ) {
		$gateway_classes .= ' frm_hidden';
	}

	$toggle_id = "frm_toggle_{$gateway_name}_settings";

	$input_params = array(
		'id'    => $toggle_id,
		'type'  => 'radio',
		'name'  => $action_control->get_field_name( 'gateway' ),
		'value' => $gateway_name,
	);

	if ( $is_active ) {
		$input_params['checked'] = 'checked';
	}

	$label_params = array(
		'for'           => $toggle_id,
		'class'         => trim( 'frm_payment_settings_tab frm_gateway_opt ' . $gateway_classes ),
		'tabindex'      => '0',
		'role'          => 'tab',
		'aria-selected' => $is_active ? 'true' : 'false',
	);
	?>
	<input <?php FrmAppHelper::array_to_html_params( $input_params, true ); ?> />
	<label <?php FrmAppHelper::array_to_html_params( $label_params, true ); ?>>
		<?php FrmAppHelper::icon_by_class( 'frmfont frm_' . $gateway_name . '_full_icon' ); ?>
		<span class="screen-reader-text"><?php echo esc_html( $name ); ?></span>
	</label>
<?php
}//end foreach
?>
</div>

```
