function uc_authorizenet_payment_gateway in Ubercart 5
Same name and namespace in other branches
- 6.2 payment/uc_authorizenet/uc_authorizenet.module \uc_authorizenet_payment_gateway()
Implementation of hook_payment_gateway().
File
- payment/
uc_authorizenet/ uc_authorizenet.module, line 80 - Process payments using Authorize.net. Supports AIM and ARB.
Code
function uc_authorizenet_payment_gateway() {
$gateways[] = array(
'id' => 'authorizenet',
'title' => t('Authorize.net'),
'description' => t('Process credit card payments using the AIM service of Authorize.net.'),
'settings' => 'uc_authorizenet_settings_form',
'credit' => 'uc_authorizenet_charge',
'credit_txn_types' => array(
UC_CREDIT_AUTH_ONLY,
UC_CREDIT_PRIOR_AUTH_CAPTURE,
UC_CREDIT_AUTH_CAPTURE,
UC_CREDIT_REFERENCE_SET,
UC_CREDIT_REFERENCE_TXN,
),
);
return $gateways;
}