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

WooPaymentsService::standardize_onboarding_steps_detailsprivateWC 1.0

Standardize (and sanity check) the onboarding steps list.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

Array. The standardized onboarding steps list.

Usage

// private - for code of main (parent) class only
$result = $this->standardize_onboarding_steps_details( $steps, $location, $rest_path ): array;
$steps(array) (required)
The onboarding steps list to standardize.
$location(string) (required)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
$rest_path(string) (required)
The REST API path to use for constructing REST API URLs.

WooPaymentsService::standardize_onboarding_steps_details() code WC 10.7.0

private function standardize_onboarding_steps_details( array $steps, string $location, string $rest_path ): array {
	$standardized_steps = array();
	foreach ( $steps as $step ) {
		$standardized_steps[] = $this->standardize_onboarding_step_details( $step, $location, $rest_path );
	}

	return $standardized_steps;
}