Settings module

Learn more about the Settings module.

The Settings module registers the plugin settings. To access the settings, select WooCommerce, select Settings, select Payments, then select Digital River.

Settings

The following fields are registered by the module:

Settings Interface

The Settings module implements the following interface:

namespace DigitalRiver\WooCommerce\Interfaces\Modules;

/**
 * Interface Settings.
 *
 * @package DigitalRiver\WooCommerce\Modules
 */
interface Settings {

    /**
     * Registers a new settings field.
     *
     * @param SettingsFieldModel $field Setting field object.
     *
     * @return void
     */
    public function register( SettingsFieldModel $field ): void;

    /**
     * Get settings value by key.
     *
     * @param string $key Settings key.
     *
     * @return Mixed
     */
    public function get( string $key );
}

Method Description

Settings class

This class takes care of accessing the setting fields and their values.

Settings Container class

This class defines all the services required for Settings module.

Settings Field Model class

This class represents actual fields on the Settings page.

Gateway class

This class registers the Digital River payment gateway.

Last updated