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

WooPaymentsService::get_nox_profile_onboardingprivateWC 1.0

Get the onboarding data from the NOX profile.

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

Хуков нет.

Возвращает

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

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

// private - только в коде основоного (родительского) класса
$result = $this->get_nox_profile_onboarding( $location ): array;
$location(строка) (обязательный)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.

Код WooPaymentsService::get_nox_profile_onboarding() WC 11.1.0

private function get_nox_profile_onboarding( string $location ): array {
	$nox_profile = $this->get_nox_profile();

	if ( empty( $nox_profile['onboarding'] ) ) {
		$nox_profile['onboarding'] = array();
	}
	if ( empty( $nox_profile['onboarding'][ $location ] ) ) {
		$nox_profile['onboarding'][ $location ] = array();
	}

	return $nox_profile['onboarding'][ $location ];
}