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

WooPaymentsService::get_nox_profileprivateWC 1.0

Get the entire stored NOX profile data.

Method of the class: WooPaymentsService{}

No Hooks.

Returns

Array. The stored NOX profile.

Usage

// private - for code of main (parent) class only
$result = $this->get_nox_profile(): array;

WooPaymentsService::get_nox_profile() code WC 10.7.0

private function get_nox_profile(): array {
	$nox_profile = $this->proxy->call_function( 'get_option', self::NOX_PROFILE_OPTION_KEY, array() );

	if ( empty( $nox_profile ) ) {
		$nox_profile = array();
	} else {
		$nox_profile = maybe_unserialize( $nox_profile );
	}

	return $nox_profile;
}