WPCF7_Stripe::display()publicCF7 1.0

Метод класса: WPCF7_Stripe{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPCF7_Stripe = new WPCF7_Stripe();
$WPCF7_Stripe->display( $action );
$action **
-
По умолчанию: ''

Код WPCF7_Stripe::display() CF7 5.9.3

public function display( $action = '' ) {
	echo sprintf(
		'<p>%s</p>',
		// https://stripe.com/docs/partners/support#intro
		esc_html( __( "Stripe is a simple and powerful way to accept payments online. Stripe has no setup fees, no monthly fees, and no hidden costs. Millions of businesses rely on Stripe’s software tools to accept payments securely and expand globally.", 'contact-form-7' ) )
	);

	echo sprintf(
		'<p><strong>%s</strong></p>',
		wpcf7_link(
			__( 'https://contactform7.com/stripe-integration/', 'contact-form-7' ),
			__( 'Stripe integration', 'contact-form-7' )
		)
	);

	if ( $this->is_active() ) {
		echo sprintf(
			'<p class="dashicons-before dashicons-yes">%s</p>',
			esc_html( __( "Stripe is active on this site.", 'contact-form-7' ) )
		);
	}

	if ( 'setup' == $action ) {
		$this->display_setup();
	} elseif ( is_ssl() or WP_DEBUG ) {
		echo sprintf(
			'<p><a href="%1$s" class="button">%2$s</a></p>',
			esc_url( $this->menu_page_url( 'action=setup' ) ),
			esc_html( __( 'Setup Integration', 'contact-form-7' ) )
		);
	} else {
		echo sprintf(
			'<p class="dashicons-before dashicons-warning">%s</p>',
			esc_html( __( "Stripe is not available on this site. It requires an HTTPS-enabled site.", 'contact-form-7' ) )
		);
	}
}