You are here

public function AuthorizeNetEcheck::buildLabel in Commerce Authorize.Net 8

Builds a label for the given payment method.

Parameters

\Drupal\commerce_payment\Entity\PaymentMethodInterface $payment_method: The payment method.

Return value

string The label.

Overrides PaymentMethodTypeInterface::buildLabel

File

src/Plugin/Commerce/PaymentMethodType/AuthorizeNetEcheck.php, line 22

Class

AuthorizeNetEcheck
Provides the Authorize.net eCheck payment method type.

Namespace

Drupal\commerce_authnet\Plugin\Commerce\PaymentMethodType

Code

public function buildLabel(PaymentMethodInterface $payment_method) {

  // eChecks are not reused, so use a generic label.
  return $this
    ->t('eCheck');
}