You are here

public function FedEx::defaultConfiguration in Commerce FedEx 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ShippingMethodBase::defaultConfiguration

File

src/Plugin/Commerce/ShippingMethod/FedEx.php, line 200

Class

FedEx
Provides the FedEx shipping method.

Namespace

Drupal\commerce_fedex\Plugin\Commerce\ShippingMethod

Code

public function defaultConfiguration() {
  return [
    'api_information' => [
      'api_key' => '',
      'api_password' => '',
      'account_number' => '',
      'meter_number' => '',
      'mode' => 'test',
    ],
    'options' => [
      'packaging' => static::PACKAGE_ALL_IN_ONE,
      'rate_request_type' => RateRequestType::VALUE_NONE,
      'dropoff' => DropoffType::VALUE_REGULAR_PICKUP,
      'insurance' => FALSE,
      'rate_multiplier' => 1.0,
      'round' => PHP_ROUND_HALF_UP,
      'log' => [],
    ],
    'plugins' => [],
  ] + parent::defaultConfiguration();
}