Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_nox_profile_onboarding_step_data_entry
Get a data entry from the NOX profile onboarding step details.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
Mixed. The entry value from the NOX profile stored step data. 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_data_entry( $step_id, $location, $entry, $default_value );
- $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:false
WooPaymentsService::get_nox_profile_onboarding_step_data_entry() WooPaymentsService::get nox profile onboarding step data entry code WC 10.8.1
private function get_nox_profile_onboarding_step_data_entry( string $step_id, string $location, string $entry, $default_value = false ) {
$step_details_data = $this->get_nox_profile_onboarding_step_entry( $step_id, $location, 'data' );
if ( ! isset( $step_details_data[ $entry ] ) ) {
return $default_value;
}
return $step_details_data[ $entry ];
}