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

WooPaymentsRestController::prepare_onboarding_details_responseprivateWC 1.0

Prepare the response for the GET onboarding details request.

Method of the class: WooPaymentsRestController{}

No Hooks.

Returns

Array. The prepared response.

Usage

// private - for code of main (parent) class only
$result = $this->prepare_onboarding_details_response( $response ): array;
$response(array) (required)
The response to prepare.

WooPaymentsRestController::prepare_onboarding_details_response() code WC 10.7.0

private function prepare_onboarding_details_response( array $response ): array {
	return $this->prepare_onboarding_details_response_recursive( $response, $this->get_schema_for_get_onboarding_details() );
}