| @@ 164-166 (lines=3) @@ | ||
| 161 | } |
|
| 162 | ||
| 163 | // Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected |
|
| 164 | if ( ( function_exists( 'wc_site_is_https' ) && ! wc_site_is_https() ) && ( 'no' === get_option( 'woocommerce_force_ssl_checkout' ) && ! class_exists( 'WordPressHTTPS' ) ) ) { |
|
| 165 | echo '<div class="error"><p>' . sprintf( __( 'Stripe is enabled, but the <a href="%s">force SSL option</a> is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Stripe will only work in test mode.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ) . '</p></div>'; |
|
| 166 | } |
|
| 167 | } |
|
| 168 | ||
| 169 | /** |
|
| @@ 222-224 (lines=3) @@ | ||
| 219 | } |
|
| 220 | ||
| 221 | // Show message if enabled and FORCE SSL is disabled and WordpressHTTPS plugin is not detected. |
|
| 222 | if ( ( function_exists( 'wc_site_is_https' ) && ! wc_site_is_https() ) && ( 'no' === get_option( 'woocommerce_force_ssl_checkout' ) && ! class_exists( 'WordPressHTTPS' ) ) ) { |
|
| 223 | echo '<div class="error stripe-ssl-message"><p>' . sprintf( __( 'Stripe is enabled, but the <a href="%s">force SSL option</a> is disabled; your checkout may not be secure! Please enable SSL and ensure your server has a valid SSL certificate - Stripe will only work in test mode.', 'woocommerce-gateway-stripe' ), admin_url( 'admin.php?page=wc-settings&tab=checkout' ) ) . '</p></div>'; |
|
| 224 | } |
|
| 225 | } |
|
| 226 | ||
| 227 | /** |
|