/home/vianto5/cititower.mx/wp-content/plugins/wpforms/src/Integrations/Stripe/Admin
Edit: /home/vianto5/cititower.mx/wp-content/plugins/wpforms/src/Integrations/Stripe/Admin/Notices.php (5333B)
%s', $notice );
}
return sprintf( '
', $notice );
}
/**
* Get a fee notice for a non-active license.
*
* If the license is NOT set/activated, show the notice to activate it.
* Otherwise, show the notice to renew it.
*
* @since 1.8.2
*
* @return string
*/
private static function get_non_active_license_notice() {
$setting_page_url = add_query_arg(
[
'page' => 'wpforms-settings',
'view' => 'general',
],
admin_url( 'admin.php' )
);
// The license is not set/activated at all.
if ( empty( wpforms_get_license_key() ) ) {
return sprintf(
wp_kses( /* translators: %s - general admin settings page URL. */
__( '
Pay-as-you-go Pricing3%% fee per-transaction + Stripe fees.
Activate your license to remove additional fees and unlock powerful features.', 'wpforms-lite' ),
[
'strong' => [],
'br' => [],
'a' => [
'href' => [],
'target' => [],
],
]
),
esc_url( $setting_page_url )
);
}
return sprintf(
wp_kses( /* translators: %s - general admin settings page URL. */
__( '
Pay-as-you-go Pricing 3%% fee per-transaction + Stripe fees.
Renew your license to remove additional fees and unlock powerful features.', 'wpforms-lite' ),
[
'strong' => [],
'br' => [],
'a' => [
'href' => [],
'target' => [],
],
]
),
esc_url( $setting_page_url )
);
}
/**
* Get a fee notice for license levels below the `pro`.
*
* Show the notice to upgrade to Pro.
*
* @since 1.8.2
*
* @return string
*/
private static function get_non_pro_license_level_notice() {
$utm_content = 'Stripe Pro - Remove Fees';
$utm_medium = wpforms_is_admin_page( 'builder' ) ? 'Payment Settings' : 'Settings - Payments';
$upgrade_link = wpforms()->is_pro() ? wpforms_admin_upgrade_link( $utm_medium, $utm_content ) : wpforms_utm_link( 'https://wpforms.com/lite-upgrade/', $utm_medium, $utm_content );
return sprintf(
wp_kses( /* translators: %s - WPForms.com Upgrade page URL. */
__( '
Pay-as-you-go Pricing 3%% fee per-transaction + Stripe fees.
Upgrade to Pro to remove additional fees and unlock powerful features.', 'wpforms-lite' ),
[
'strong' => [],
'br' => [],
'a' => [
'href' => [],
'target' => [],
],
]
),
esc_url( $upgrade_link )
);
}
/**
* Display alert about new interface.
*
* @since 1.8.4
*/
public static function prompt_new_interface() {
$dismissed = get_user_meta( get_current_user_id(), 'wpforms_dismissed', true );
// Check if not dismissed.
if ( ! empty( $dismissed['edu-wpforms-stripe-legacy-interface'] ) ) {
return;
}
$addon_compat = ( new StripeAddonCompatibility() )->init();
if ( $addon_compat && ! $addon_compat->is_supported_modern_settings() ) {
$message = __( 'A new and improved Stripe interface is available with new Stripe Pro addon.', 'wpforms-lite' );
} else {
$message = __( 'A new and improved Stripe interface is available when you create new forms.', 'wpforms-lite' );
}
?>