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

WooPaymentsService::save_nox_profile_onboardingprivateWC 1.0

Save the onboarding data in the NOX profile.

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

Хуков нет.

Возвращает

true|false. Whether the onboarding data was saved.

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

// private - только в коде основоного (родительского) класса
$result = $this->save_nox_profile_onboarding( $location, $data ): bool;
$location(строка) (обязательный)
The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
$data(массив) (обязательный)
The onboarding step data to save in the profile.

Код WooPaymentsService::save_nox_profile_onboarding() WC 11.0.0

private function save_nox_profile_onboarding( string $location, array $data ): bool {
	$nox_profile = $this->get_nox_profile();

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

	// Update the stored data.
	$nox_profile['onboarding'][ $location ] = $data;

	return $this->save_nox_profile( $nox_profile );
}