WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\API

Plugins::connect_wcpay() public WC 1.0

Returns a URL that can be used to by WCPay to verify business details with Stripe.

{} It's a method of the class: Plugins{}

No Hooks.

Return

WP_Error|Array. Connect URL.

Usage

$Plugins = new Plugins();
$Plugins->connect_wcpay();

Code of Plugins::connect_wcpay() WC 5.2.2

<?php
public function connect_wcpay() {
	if ( ! class_exists( 'WC_Payments_Account' ) ) {
		return new \WP_Error( 'woocommerce_rest_helper_connect', __( 'There was an error communicating with the WooCommerce Payments plugin.', 'woocommerce' ), 500 );
	}

	$connect_url = add_query_arg(
		array(
			'wcpay-connect' => 'WCADMIN_PAYMENT_TASK',
			'_wpnonce'      => wp_create_nonce( 'wcpay-connect' ),
		),
		admin_url()
	);

	return( array(
		'connectUrl' => $connect_url,
	) );
}