You are here

interface CheckoutSdkFactoryInterface in Commerce PayPal 8

PayPal checkout SDK factory interface.

Hierarchy

Expanded class hierarchy of CheckoutSdkFactoryInterface

All classes that implement CheckoutSdkFactoryInterface

1 file declares its use of CheckoutSdkFactoryInterface
CheckoutController.php in src/Controller/CheckoutController.php

File

src/CheckoutSdkFactoryInterface.php, line 8

Namespace

Drupal\commerce_paypal
View source
interface CheckoutSdkFactoryInterface {

  /**
   * Retrieves the PayPal Checkout SDK for the given config.
   *
   * @param array $configuration
   *   An associative array, containing at least these three keys:
   *   - mode: The API mode (e.g "test" or "live").
   *   - client_id: The client ID.
   *   - secret: The client secret.
   *
   * @return \Drupal\commerce_paypal\CheckoutSdk
   *   The PayPal Checkout SDK.
   */
  public function get(array $configuration);

}

Members

Namesort descending Modifiers Type Description Overrides
CheckoutSdkFactoryInterface::get public function Retrieves the PayPal Checkout SDK for the given config. 1