Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_nox_profile_onboarding_step_entry
Get an entry from the NOX profile onboarding step details.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
Mixed. The entry from the NOX profile step details. If the entry is not found, the default value is returned.
Usage
// private - for code of main (parent) class only $result = $this->get_nox_profile_onboarding_step_entry( $step_id, $location, $entry, $default_value ): 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.
- $entry(string) (required)
- The entry to get from the step data.
- $default_value(mixed)
- The default value to return if the entry is not found.
Default:array()
WooPaymentsService::get_nox_profile_onboarding_step_entry() WooPaymentsService::get nox profile onboarding step entry code WC 10.8.1
private function get_nox_profile_onboarding_step_entry( string $step_id, string $location, string $entry, $default_value = array() ): array {
$step_details = $this->get_nox_profile_onboarding_step( $step_id, $location );
if ( ! isset( $step_details[ $entry ] ) ) {
return $default_value;
}
return $step_details[ $entry ];
}