Code Duplication    Length = 7-8 lines in 2 locations

includes/payment-methods/class-wc-gateway-stripe-sepa.php 1 location

@@ 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();

includes/class-wc-gateway-stripe.php 1 location

@@ 411-418 (lines=8) @@
408
			data-three-d-secure="' . esc_attr( $this->three_d_secure ? 'true' : 'false' ) . '"
409
			data-allow-remember-me="' . esc_attr( $this->saved_cards ? 'true' : 'false' ) . '">';
410
411
		if ( $this->description ) {
412
			if ( $this->testmode ) {
413
				/* translators: link to Stripe testing page */
414
				$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' );
415
				$this->description  = trim( $this->description );
416
			}
417
			echo apply_filters( 'wc_stripe_description', wpautop( wp_kses_post( $this->description ) ) );
418
		}
419
420
		if ( $display_tokenization ) {
421
			$this->tokenization_script();