You are here

protected function AuthorizeNet::transactionType in Ubercart 8.4

Returns the title of the transaction type.

1 call to AuthorizeNet::transactionType()
AuthorizeNet::_uc_authorizenet_charge in payment/uc_authorizenet/src/Plugin/Ubercart/PaymentMethod/AuthorizeNet.php
Handles authorizations and captures through AIM at Authorize.Net.

File

payment/uc_authorizenet/src/Plugin/Ubercart/PaymentMethod/AuthorizeNet.php, line 599

Class

AuthorizeNet
Defines the Authorize.net payment method.

Namespace

Drupal\uc_authorizenet\Plugin\Ubercart\PaymentMethod

Code

protected function transactionType($type) {
  switch (strtoupper($type)) {
    case 'AUTH_CAPTURE':
      return $this
        ->t('Authorization and capture');
    case 'AUTH_ONLY':
      return $this
        ->t('Authorization only');
    case 'PRIOR_AUTH_CAPTURE':
      return $this
        ->t('Prior authorization capture');
    case 'CAPTURE_ONLY':
      return $this
        ->t('Capture only');
    case 'CREDIT':
      return $this
        ->t('Credit');
    case 'VOID':
      return $this
        ->t('Void');
  }
}