You are here

function _uc_authorizenet_txn_type in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_txn_type()
  2. 7.3 payment/uc_authorizenet/uc_authorizenet.module \_uc_authorizenet_txn_type()
1 call to _uc_authorizenet_txn_type()
_uc_authorizenet_charge in payment/uc_authorizenet/uc_authorizenet.module
Handles authorizations and captures through AIM at Authorize.Net

File

payment/uc_authorizenet/uc_authorizenet.module, line 1094
Process payments using Authorize.net. Supports AIM and ARB.

Code

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