protected function FedExRequest::getMode in Commerce FedEx 8
Gets the mode to use to connect.
Parameters
array $configuration: The configuration array.
Return value
string The mode (test or live).
4 calls to FedExRequest::getMode()
- FedExRequest::getRateService in src/
FedExRequest.php - Gets a new RateService.
- FedExRequest::getShipService in src/
FedExRequest.php - Gets a new ShipService.
- FedExRequest::getTrackService in src/
FedExRequest.php - Gets a new TrackService.
- FedExRequest::__call in src/
FedExRequest.php
File
- src/
FedExRequest.php, line 178
Class
- FedExRequest
- Manage FedEx API services.
Namespace
Drupal\commerce_fedexCode
protected function getMode(array $configuration) {
$mode = 'test';
if (!empty($configuration['api_information']['mode'])) {
$mode = $configuration['api_information']['mode'];
}
return $mode;
}