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

WooPaymentsService::get_nox_profile_onboarding_stepprivateWC 1.0

Get the onboarding step data from the NOX profile.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

Array. The onboarding step stored data from the NOX profile. If the step data is not found, an empty array is returned.

Usage

// private - for code of main (parent) class only
$result = $this->get_nox_profile_onboarding_step( $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::get_nox_profile_onboarding_step() code WC 10.7.0

private function get_nox_profile_onboarding_step( string $step_id, string $location ): array {
	$nox_profile_onboarding = $this->get_nox_profile_onboarding( $location );

	if ( empty( $nox_profile_onboarding['steps'] ) ) {
		$nox_profile_onboarding['steps'] = array();
	}
	if ( empty( $nox_profile_onboarding['steps'][ $step_id ] ) ) {
		$nox_profile_onboarding['steps'][ $step_id ] = array();
	}

	return $nox_profile_onboarding['steps'][ $step_id ];
}