Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::save_nox_profile_onboarding
Save the onboarding data in the NOX profile.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
true|false. Whether the onboarding data was saved.
Usage
// private - for code of main (parent) class only $result = $this->save_nox_profile_onboarding( $location, $data ): bool;
- $location(string) (required)
- The location for which we are onboarding. This is an ISO 3166-1 alpha-2 country code.
- $data(array) (required)
- The onboarding step data to save in the profile.
WooPaymentsService::save_nox_profile_onboarding() WooPaymentsService::save nox profile onboarding code WC 10.7.0
private function save_nox_profile_onboarding( string $location, array $data ): bool {
$nox_profile = $this->get_nox_profile();
if ( empty( $nox_profile['onboarding'] ) ) {
$nox_profile['onboarding'] = array();
}
// Update the stored data.
$nox_profile['onboarding'][ $location ] = $data;
return $this->save_nox_profile( $nox_profile );
}