You are here

public function CheckoutSdk::__construct in Commerce PayPal 8

Constructs a new CheckoutSdk object.

Parameters

\GuzzleHttp\ClientInterface $client: The client.

\Drupal\commerce_order\AdjustmentTransformerInterface $adjustment_transformer: The adjustment transformer.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.

\Drupal\Component\Datetime\TimeInterface $time: The time.

array $config: The payment gateway plugin configuration array.

File

src/CheckoutSdk.php, line 80

Class

CheckoutSdk
Provides a replacement of the PayPal SDK.

Namespace

Drupal\commerce_paypal

Code

public function __construct(ClientInterface $client, AdjustmentTransformerInterface $adjustment_transformer, EventDispatcherInterface $event_dispatcher, ModuleHandlerInterface $module_handler, TimeInterface $time, array $config) {
  $this->client = $client;
  $this->adjustmentTransformer = $adjustment_transformer;
  $this->eventDispatcher = $event_dispatcher;
  $this->moduleHandler = $module_handler;
  $this->time = $time;
  $this->config = $config;
}