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

WooPaymentsService::save_nox_profile_onboarding_step_entryprivateWC 1.0

Save an entry in the NOX profile onboarding step details.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

true|false. Whether the onboarding step data was saved.

Usage

// private - for code of main (parent) class only
$result = $this->save_nox_profile_onboarding_step_entry( $step_id, $location, $entry, $data ): bool;
$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.
$entry(string) (required)
The entry key under which to save in the step data.
$data(array) (required)
The data to save in the step data.

WooPaymentsService::save_nox_profile_onboarding_step_entry() code WC 10.7.0

private function save_nox_profile_onboarding_step_entry( string $step_id, string $location, string $entry, array $data ): bool {
	$step_details = $this->get_nox_profile_onboarding_step( $step_id, $location );

	// Update the stored step data.
	$step_details[ $entry ] = $data;

	return $this->save_nox_profile_onboarding_step( $step_id, $location, $step_details );
}