|
@@ 163-181 (lines=19) @@
|
| 160 |
|
$show_request_api_notice = get_option( 'wc_stripe_show_request_api_notice' ); |
| 161 |
|
$show_apple_pay_notice = get_option( 'wc_stripe_show_apple_pay_notice' ); |
| 162 |
|
|
| 163 |
|
if ( empty( $show_apple_pay_notice ) || 'yes' === $show_apple_pay_notice ) { |
| 164 |
|
// @TODO remove this notice in the future. |
| 165 |
|
?> |
| 166 |
|
<div class="notice notice-warning wc-stripe-apple-pay-notice is-dismissible"><p><?php esc_html_e( 'New Feature! Stripe now supports Apple Pay. Your customers can now purchase your products even faster. Apple Pay has been enabled by default.', 'woocommerce-gateway-stripe' ); ?></p></div> |
| 167 |
|
|
| 168 |
|
<script type="application/javascript"> |
| 169 |
|
window.onload = function() { |
| 170 |
|
jQuery( '.wc-stripe-apple-pay-notice' ).on( 'click', '.notice-dismiss', function () { |
| 171 |
|
var data = { |
| 172 |
|
action: 'stripe_dismiss_apple_pay_notice' |
| 173 |
|
}; |
| 174 |
|
|
| 175 |
|
jQuery.post( '<?php echo admin_url( 'admin-ajax.php' ); ?>', data ); |
| 176 |
|
}); |
| 177 |
|
} |
| 178 |
|
</script> |
| 179 |
|
|
| 180 |
|
<?php |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
if ( empty( $show_request_api_notice ) || 'yes' === $show_request_api_notice ) { |
| 184 |
|
// @TODO remove this notice in the future. |
|
@@ 183-201 (lines=19) @@
|
| 180 |
|
<?php |
| 181 |
|
} |
| 182 |
|
|
| 183 |
|
if ( empty( $show_request_api_notice ) || 'yes' === $show_request_api_notice ) { |
| 184 |
|
// @TODO remove this notice in the future. |
| 185 |
|
?> |
| 186 |
|
<div class="notice notice-warning wc-stripe-request-api-notice is-dismissible"><p><?php esc_html_e( 'New Feature! Stripe now supports Google Payment Request. Your customers can now use mobile phones with supported browsers such as Chrome to make purchases easier and faster.', 'woocommerce-gateway-stripe' ); ?></p></div> |
| 187 |
|
|
| 188 |
|
<script type="application/javascript"> |
| 189 |
|
window.onload = function() { |
| 190 |
|
jQuery( '.wc-stripe-request-api-notice' ).on( 'click', '.notice-dismiss', function () { |
| 191 |
|
var data = { |
| 192 |
|
action: 'stripe_dismiss_request_api_notice' |
| 193 |
|
}; |
| 194 |
|
|
| 195 |
|
jQuery.post( '<?php echo admin_url( 'admin-ajax.php' ); ?>', data ); |
| 196 |
|
}); |
| 197 |
|
} |
| 198 |
|
</script> |
| 199 |
|
|
| 200 |
|
<?php |
| 201 |
|
} |
| 202 |
|
|
| 203 |
|
if ( ! defined( 'IFRAME_REQUEST' ) && ( WC_STRIPE_VERSION !== get_option( 'woocommerce_stripe_version' ) ) ) { |
| 204 |
|
$this->install(); |