@@ 406-413 (lines=8) @@ | ||
403 | data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '" |
|
404 | data-allow-remember-me="' . esc_attr( $this->saved_cards ? 'true' : 'false' ) . '">'; |
|
405 | ||
406 | if ( $this->description ) { |
|
407 | if ( $this->testmode ) { |
|
408 | /* translators: link to Stripe testing page */ |
|
409 | $this->description .= ' ' . sprintf( __( 'TEST MODE ENABLED. In test mode, you can use the card number 4242424242424242 with any CVC and a valid expiration date or check the documentation "<a href="%s" target="_blank">Testing Stripe</a>" for more card numbers.', 'woocommerce-gateway-stripe' ), 'https://stripe.com/docs/testing' ); |
|
410 | $this->description = trim( $this->description ); |
|
411 | } |
|
412 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
413 | } |
|
414 | ||
415 | if ( $display_tokenization ) { |
|
416 | $this->tokenization_script(); |
@@ 286-292 (lines=7) @@ | ||
283 | data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '" |
|
284 | data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '">'; |
|
285 | ||
286 | if ( $this->description ) { |
|
287 | if ( $this->testmode ) { |
|
288 | $this->description .= ' ' . __( 'TEST MODE ENABLED. In test mode, you can use IBAN number DE89370400440532013000.', 'woocommerce-gateway-stripe' ); |
|
289 | $this->description = trim( $this->description ); |
|
290 | } |
|
291 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
292 | } |
|
293 | ||
294 | if ( $display_tokenization ) { |
|
295 | $this->tokenization_script(); |