You are here

public function PaymentGatewayInterface::getJsLibrary in Commerce Core 8.2

Gets the JS library ID.

This is usually an external library defined in the module's libraries.yml file. Included by the PaymentInformation pane to get around core bug #1988968. Example: 'commerce_braintree/braintree'.

Return value

string|null The JS library ID, or NULL if not available.

1 method overrides PaymentGatewayInterface::getJsLibrary()
PaymentGatewayBase::getJsLibrary in modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayBase.php
Gets the JS library ID.

File

modules/payment/src/Plugin/Commerce/PaymentGateway/PaymentGatewayInterface.php, line 67

Class

PaymentGatewayInterface
Defines the base interface for payment gateways.

Namespace

Drupal\commerce_payment\Plugin\Commerce\PaymentGateway

Code

public function getJsLibrary();