| @@ 434-441 (lines=8) @@ | ||
| 431 | data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '" |
|
| 432 | data-allow-remember-me="' . esc_attr( $this->saved_cards ? 'true' : 'false' ) . '">'; |
|
| 433 | ||
| 434 | if ( $this->description ) { |
|
| 435 | if ( $this->testmode ) { |
|
| 436 | /* translators: link to Stripe testing page */ |
|
| 437 | $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' ); |
|
| 438 | $this->description = trim( $this->description ); |
|
| 439 | } |
|
| 440 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
| 441 | } |
|
| 442 | ||
| 443 | if ( $display_tokenization ) { |
|
| 444 | $this->tokenization_script(); |
|
| @@ 299-305 (lines=7) @@ | ||
| 296 | data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '" |
|
| 297 | data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '">'; |
|
| 298 | ||
| 299 | if ( $this->description ) { |
|
| 300 | if ( $this->testmode ) { |
|
| 301 | $this->description .= ' ' . __( 'TEST MODE ENABLED. In test mode, you can use IBAN number DE89370400440532013000.', 'woocommerce-gateway-stripe' ); |
|
| 302 | $this->description = trim( $this->description ); |
|
| 303 | } |
|
| 304 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
| 305 | } |
|
| 306 | ||
| 307 | if ( $display_tokenization ) { |
|
| 308 | $this->tokenization_script(); |
|