You are here

public function TwoCheckout::cartReviewTitle in Ubercart 8.4

Returns the payment method title to be used on the checkout review page.

Return value

string The payment method title.

Overrides PaymentMethodPluginBase::cartReviewTitle

File

payment/uc_2checkout/src/Plugin/Ubercart/PaymentMethod/TwoCheckout.php, line 164

Class

TwoCheckout
Defines the 2Checkout payment method.

Namespace

Drupal\uc_2checkout\Plugin\Ubercart\PaymentMethod

Code

public function cartReviewTitle() {
  if ($this->configuration['check']) {
    return $this
      ->t('Credit card/eCheck');
  }
  else {
    return $this
      ->t('Credit card');
  }
}