instance_index == $targetForm->instance_index) {
$classes .= ' ff_has_stripe_inline';
}
return $classes;
}, 10, 2);
$elementId = $data['attributes']['name'] . '_' . $form->id . '_' . $form->instance_index . '_stripe_inline';
$label = ArrayHelper::get($method, 'settings.option_label.value', __('Pay with Stripe', 'fluentform'));
$display = $method['is_default'] ? 'block' : 'none';
$markup = '
';
$markup .= '
';
$markup .= '' . $label . ' ';
$markup .= '
';
$attributes = [
'name' => 'stripe_card_element',
// The Payment Element draws its own inputs; only the bare Card Element needs the input box
'class' => $paymentElement ? 'ff_stripe_card_element' : 'ff_stripe_card_element ff-el-form-control',
'data-wpf_payment_method' => 'stripe',
'id' => $elementId,
'data-checkout_style' => 'embedded_form',
'data-verify_zip' => ArrayHelper::get($method, 'settings.verify_zip.value') === 'yes'
];
$markup .= '
buildAttributes($attributes) . '>
';
$markup .= '
';
if (!StripeSettings::isLive($form->id)) {
$stripeTestModeMessage = __('Stripe test mode activated', 'fluentform');
$markup .= '
' . $stripeTestModeMessage . ' ';
}
$markup .= '
';
return $inlineContents . $markup;
}
/**
* We don't need to return anything from here
*/
function getComponent()
{
}
/**
* We don't need to return anything from here
*/
function render($element, $form)
{
}
}