Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments

WooPaymentsService::onboarding_step_checkpublicWC 1.0

Check an onboarding step's status/progress.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

Array. The check result.

Usage

$WooPaymentsService = new WooPaymentsService();
$WooPaymentsService->onboarding_step_check( $step_id, $location ): array;
$step_id(string) (required)
The ID of the onboarding step.
$location(string) (required)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.

WooPaymentsService::onboarding_step_check() code WC 10.8.1

public function onboarding_step_check( string $step_id, string $location ): array {
	$this->check_if_onboarding_step_action_is_acceptable( $step_id, $location );

	return array(
		'status' => $this->get_onboarding_step_status( $step_id, $location ),
		'error'  => $this->get_onboarding_step_error( $step_id, $location ),
	);
}