You are here

function uc_credit_transaction_types in Ubercart 5

Same name and namespace in other branches
  1. 8.4 payment/uc_credit/uc_credit.module \uc_credit_transaction_types()
  2. 6.2 payment/uc_credit/uc_credit.module \uc_credit_transaction_types()
  3. 7.3 payment/uc_credit/uc_credit.module \uc_credit_transaction_types()

Returns an array of credit card transaction types available to payment gateway modules that make sense for default usage.

3 calls to uc_credit_transaction_types()
uc_paypal_wpp_charge in payment/uc_paypal/uc_paypal.module
_uc_authorizenet_cim_profile_charge in payment/uc_authorizenet/uc_authorizenet.module
Use a reference to charge to a CIM profile.
_uc_cybersource_soap_charge in payment/uc_cybersource/uc_cybersource.module

File

payment/uc_credit/uc_credit.module, line 1814
Defines the credit card payment method and hooks in payment gateways.

Code

function uc_credit_transaction_types() {
  $types = array(
    UC_CREDIT_AUTH_ONLY => t('Authorization only'),
    UC_CREDIT_PRIOR_AUTH_CAPTURE => t('Prior authorization capture'),
    UC_CREDIT_AUTH_CAPTURE => t('Authorize and capture immediately'),
    UC_CREDIT_REFERENCE_TXN => t('Reference transaction'),
  );
  return $types;
}