You are here

public function CustomCardFieldsBuilder::__construct in Commerce PayPal 8

Constructs a new CustomCardFieldsBuilder object.

Parameters

\Drupal\commerce_paypal\CheckoutSdkFactoryInterface $checkout_sdk_factory: The PayPal Checkout SDK factory.

\Psr\Log\LoggerInterface $logger: The logger channel.

File

src/CustomCardFieldsBuilder.php, line 40

Class

CustomCardFieldsBuilder
Provides a helper for building the PayPal custom card fields form.

Namespace

Drupal\commerce_paypal

Code

public function __construct(CheckoutSdkFactoryInterface $checkout_sdk_factory, LoggerInterface $logger) {
  $this->checkoutSdkFactory = $checkout_sdk_factory;
  $this->logger = $logger;
}