Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::get_onboarding_step_error
Get the current stored error for an onboarding step.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
Array. The error for the onboarding step.
Usage
// private - for code of main (parent) class only $result = $this->get_onboarding_step_error( $step_id, $location ): 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.
WooPaymentsService::get_onboarding_step_error() WooPaymentsService::get onboarding step error code WC 10.8.1
private function get_onboarding_step_error( string $step_id, string $location ): array {
return (array) $this->get_nox_profile_onboarding_step_data_entry( $step_id, $location, 'error', array() );
}