getStripeConnectButtonMarkup();
// Check if premium is active.
if (give_stripe_is_premium_active()) {
/**
* This action hook will be used to load Manual API fields for premium addon.
*
* @since 2.7.0
*
* @param array $stripeAccounts All Stripe accounts.
*
*/
do_action('give_stripe_premium_manual_api_fields', $this->stripeAccounts);
}
?>
%s',
'https://stripe.com/docs/statement-descriptors#requirements',
Give()->tooltips->render_help([
'label' => esc_html__(
'This is the text that appears on your donor\'s bank statements. This is typically the name of your website or organization. Click on this icon to read more about Stripe statement text requirements.',
'give'
),
'size' => 'medium',
]
)
);
?>
isGlobalSettingPage()): ?>
stripeAccounts,
$this->defaultStripeAccountSlug
);
if ($stripeAccountActionsHtml) {
printf(
'
isGlobalSettingPage() ?
admin_url('edit.php?post_type=give_forms&page=give-settings&tab=gateways§ion=stripe-settings') :
admin_url("post.php?post=$post->ID&action=edit&give_tab=stripe_form_account_options");
$modal_title = sprintf(
'%1$s',
esc_html__(
'You are connected! Now this is important: Please configure your Stripe webhook to finalize the setup.',
'give'
)
);
$modal_first_detail = sprintf(
'%1$s %2$s',
esc_html__(
'In order for Stripe to function properly, you must add a new Stripe webhook endpoint. To do this please visit the Webhooks Section of your Stripe Dashboard and click the Add endpoint button and paste the following URL:',
'give'
),
"{$site_url}?give-listener=stripe"
);
$modal_second_detail = esc_html__(
'Stripe webhooks are required so GiveWP can communicate properly with the payment gateway to confirm payment completion, renewals, and more.',
'give'
);
$can_display = ! empty($_GET['stripe_account']) ? '0' : '1';
?>
notices->print_admin_notices(
[
'description' => sprintf(
'%1$s %3$s %4$s',
esc_html__(
'Give 2.7.0 introduces the ability to connect a single site to multiple Stripe accounts. To use this feature, you need to complete database updates. ',
'give'
),
esc_url(admin_url('edit.php?post_type=give_forms&page=give-updates')),
esc_html__('Click here', 'give'),
esc_html__('to complete your pending database updates.', 'give')
),
'dismissible' => false,
]
);
?>
isGlobalSettingPage() ?
esc_html__('No Stripe Accounts Connected', 'give') :
esc_html__('Connect a New Stripe Account', 'give');
?>
isGlobalSettingPage() ?
esc_html__('Connect an account to get started!', 'give') :
esc_html__(
'Add a new account to customize the Stripe account used for this donation form.',
'give'
)
?>
isGlobalSettingPage() ?
esc_html__('All payments go to the default account', 'give') :
esc_html__('Stripe donations process through the account set above', 'give');
?>
isGlobalSettingPage() ?
esc_html__(
'You can set this globally (for all donation forms) or override the Stripe account per donation form.',
'give'
) :
esc_html__('This overrides the global default account setting for this donation form.', 'give');
?>