| @@ 419-426 (lines=8) @@ | ||
| 416 | data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '" |
|
| 417 | data-allow-remember-me="' . esc_attr( $this->saved_cards ? 'true' : 'false' ) . '">'; |
|
| 418 | ||
| 419 | if ( $this->description ) { |
|
| 420 | if ( $this->testmode ) { |
|
| 421 | /* translators: link to Stripe testing page */ |
|
| 422 | $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' ); |
|
| 423 | $this->description = trim( $this->description ); |
|
| 424 | } |
|
| 425 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
| 426 | } |
|
| 427 | ||
| 428 | if ( $display_tokenization ) { |
|
| 429 | $this->tokenization_script(); |
|
| @@ 290-296 (lines=7) @@ | ||
| 287 | data-amount="' . esc_attr( WC_Stripe_Helper::get_stripe_amount( $total ) ) . '" |
|
| 288 | data-currency="' . esc_attr( strtolower( get_woocommerce_currency() ) ) . '">'; |
|
| 289 | ||
| 290 | if ( $this->description ) { |
|
| 291 | if ( $this->testmode ) { |
|
| 292 | $this->description .= ' ' . __( 'TEST MODE ENABLED. In test mode, you can use IBAN number DE89370400440532013000.', 'woocommerce-gateway-stripe' ); |
|
| 293 | $this->description = trim( $this->description ); |
|
| 294 | } |
|
| 295 | echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) ); |
|
| 296 | } |
|
| 297 | ||
| 298 | if ( $display_tokenization ) { |
|
| 299 | $this->tokenization_script(); |
|