public function CheckoutSdkFactoryInterface::get in Commerce PayPal 8
Retrieves the PayPal Checkout SDK for the given config.
Parameters
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 value
\Drupal\commerce_paypal\CheckoutSdk The PayPal Checkout SDK.
1 method overrides CheckoutSdkFactoryInterface::get()
- CheckoutSdkFactory::get in src/
CheckoutSdkFactory.php - Retrieves the PayPal Checkout SDK for the given config.
File
- src/
CheckoutSdkFactoryInterface.php, line 22
Class
- CheckoutSdkFactoryInterface
- PayPal checkout SDK factory interface.
Namespace
Drupal\commerce_paypalCode
public function get(array $configuration);