function uc_cybersource_uc_payment_gateway in Ubercart 7.3
Implements hook_uc_payment_gateway().
File
- payment/
uc_cybersource/ uc_cybersource.module, line 99 - A module used for CyberSource's Silent Order POST and Hosted Order Page methods of payment.
Code
function uc_cybersource_uc_payment_gateway() {
// CyberSource APIs other than HOP require uc_credit to be enabled.
if (!module_exists('uc_credit')) {
return;
}
$gateways['cybersource'] = array(
'title' => t('CyberSource Silent Order POST'),
'description' => t('Process credit card payments using the Silent Order POST service of CyberSource.'),
'settings' => 'uc_cybersource_settings_form',
'credit' => 'uc_cybersource_charge',
'credit_txn_types' => array(
UC_CREDIT_AUTH_ONLY,
UC_CREDIT_PRIOR_AUTH_CAPTURE,
UC_CREDIT_AUTH_CAPTURE,
UC_CREDIT_REFERENCE_TXN,
),
);
return $gateways;
}