Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_nox_profile_onboarding
Get the onboarding data from the NOX profile.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
Array. The onboarding stored data from the NOX profile. If the step data is not found, an empty array is returned.
Usage
// private - for code of main (parent) class only $result = $this->get_nox_profile_onboarding( $location ): array;
- $location(string) (required)
- The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
WooPaymentsService::get_nox_profile_onboarding() WooPaymentsService::get nox profile onboarding code WC 10.7.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 ];
}