You are here

public static function Braintree3DSReview::create in Commerce Braintree 8

Creates an instance of the plugin.

Parameters

\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the plugin.

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin ID for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Return value

static Returns an instance of this plugin.

Overrides CheckoutPaneBase::create

File

src/Plugin/Commerce/CheckoutPane/Braintree3DSReview.php, line 43

Class

Braintree3DSReview
Adds 3DS authentication for Braintree vaulted/stored payment methods.

Namespace

Drupal\commerce_braintree\Plugin\Commerce\CheckoutPane

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, CheckoutFlowInterface $checkout_flow = NULL) {
  $instance = parent::create($container, $configuration, $plugin_id, $plugin_definition, $checkout_flow);
  $instance
    ->setLogger($container
    ->get('logger.channel.commerce_payment'));
  return $instance;
}