You are here

public function FedExRequest::getWebAuthenticationDetail in Commerce FedEx 8

4 calls to FedExRequest::getWebAuthenticationDetail()
FedExRequest::getRateRequest in src/FedExRequest.php
Gets a new rate request.
FedExRequest::getShipRequest in src/FedExRequest.php
Gets a new ShipRequest.
FedExRequest::getTrackRequest in src/FedExRequest.php
Gets a new TrackRequest.
FedExRequest::__call in src/FedExRequest.php

File

src/FedExRequest.php, line 132

Class

FedExRequest
Manage FedEx API services.

Namespace

Drupal\commerce_fedex

Code

public function getWebAuthenticationDetail(array $configuration) {
  $web_authentication_detail = new WebAuthenticationDetail();
  $web_authentication_detail
    ->setUserCredential(new WebAuthenticationCredential($configuration['api_information']['api_key'], $configuration['api_information']['api_password']));
  return $web_authentication_detail;
}