Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions classes/helpers/FrmAppHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4054,8 +4054,12 @@ private static function add_form_builder_modal_data( &$admin_script_strings ) {
$gateway_texts['square'] = esc_html__( 'Square', 'formidable' );
}

if ( $paypal_connected ) {
$gateway_texts['paypal'] = esc_html__( 'PayPal', 'formidable' );
}

$admin_script_strings['pricingFieldsModal']['msg'] = sprintf(
// translators: %s: Stripe or Square.
// translators: %s: Stripe, Square, or PayPal.
esc_html__( 'You already have %s connected, so these have already been unlocked.', 'formidable' ),
esc_html( implode( ' ' . esc_html__( 'and', 'formidable' ) . ' ', $gateway_texts ) )
);
Expand All @@ -4064,7 +4068,7 @@ private static function add_form_builder_modal_data( &$admin_script_strings ) {
$admin_script_strings['pricingFieldsModal']['actionText'] = __( 'Setup Payments Now', 'formidable' );
$admin_script_strings['pricingFieldsModal']['actionUrl'] = $payments_settings_url;
// phpcs:ignore SlevomatCodingStandard.Files.LineLength.LineTooLong
$admin_script_strings['pricingFieldsModal']['msg'] = __( 'We\'ve unlocked Product, Quantity, and Total fields for Lite users! You can now transform your forms into checkout pages. To start collecting revenue, simply connect your preferred payment gateway (Stripe, or Square) in your settings.', 'formidable' );
$admin_script_strings['pricingFieldsModal']['msg'] = __( 'We\'ve unlocked Product, Quantity, and Total fields for Lite users! You can now transform your forms into checkout pages. To start collecting revenue, simply connect your preferred payment gateway (Stripe, Square, or PayPal) in your settings.', 'formidable' );
}//end if

delete_option( 'frm_show_pricing_fields_modal' );
Expand Down
Loading