You are here

function uc_credit_transaction_types in Ubercart 8.4

Same name and namespace in other branches
  1. 5 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 default credit card transaction types.

Return value

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

2 calls to uc_credit_transaction_types()
PayPalWebsitePaymentsPro::chargeCard in payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalWebsitePaymentsPro.php
Called when a credit card should be processed.
_uc_authorizenet_cim_profile_charge in payment/uc_authorizenet/uc_authorizenet.module
Uses a reference to charge to a CIM profile.

File

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

Code

function uc_credit_transaction_types() {
  $types = [
    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;
}