You are here

function uc_credit_transaction_types in Ubercart 7.3

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

Returns an array of default credit card transaction types.

Return value

array Associative array of transaction types, keyed by defined constant value.

3 calls to uc_credit_transaction_types()
uc_paypal_wpp_charge in payment/uc_paypal/uc_paypal.module
Processes a credit card payment through Website Payments Pro.
_uc_authorizenet_cim_profile_charge in payment/uc_authorizenet/uc_authorizenet.module
Uses a reference to charge to a CIM profile.
_uc_cybersource_soap_charge in payment/uc_cybersource/uc_cybersource.module
Handles the SOAP charge request and Ubercart order save.

File

payment/uc_credit/uc_credit.module, line 995
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;
}