function uc_recurring_hosted_recurring_info in UC Recurring Payments and Subscriptions 7.2
Same name and namespace in other branches
- 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.module \uc_recurring_hosted_recurring_info()
Implements hook_recurring_info().
File
- modules/
uc_recurring_hosted/ uc_recurring_hosted.module, line 60 - Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS
Code
function uc_recurring_hosted_recurring_info() {
// AUTHORIZE.NET ARB
$items['authorizenet_arb'] = array(
'name' => t('Authorize.net (ARB)'),
'payment method' => 'credit',
'module' => 'uc_recurring_hosted',
'fee handler' => 'authorizenet_arb',
'process callback' => 'uc_recurring_hosted_authorizenet_arb_process',
'renew callback' => 'uc_recurring_hosted_authorizenet_arb_renew',
'cancel callback' => 'uc_recurring_hosted_authorizenet_arb_cancel',
'menu' => array(
'update' => array(
'title' => 'Update Account Details',
'page arguments' => array(
'uc_recurring_hosted_authorizenet_arb_update_form',
),
),
'cancel' => UC_RECURRING_MENU_DEFAULT,
),
'own handler' => TRUE,
);
if (variable_get('uc_authnet_arb_mode', 'disabled') != 'disabled') {
$items['authorizenet'] = $items['authorizenet_arb'];
}
// Paypal website payments standard.
if (module_exists('uc_paypal')) {
$items['paypal_wps'] = array(
'name' => t('Paypal website payments standard'),
'payment method' => 'paypal_wps',
'fee handler' => 'paypal_wps',
'module' => 'uc_recurring_hosted',
'process callback' => 'uc_recurring_hosted_paypal_wps_process',
'renew callback' => 'uc_recurring_hosted_paypal_wps_renew',
'own handler' => TRUE,
'menu' => array(
'cancel' => array(
'title' => t('Cancel'),
'page arguments' => array(
'uc_recurring_hosted_paypal_cancel_form',
),
),
),
);
// PayPal Website Payments Pro
$items['paypal_wpp'] = array(
'name' => t('PayPal website payments pro'),
'payment method' => 'credit',
'fee handler' => 'paypal_wpp',
'module' => 'uc_recurring_hosted',
'process callback' => 'uc_recurring_hosted_paypal_wpp_process',
'renew callback' => 'uc_recurring_hosted_paypal_wpp_renew',
'cancel callback' => 'uc_recurring_hosted_paypal_wpp_cancel',
'menu' => array(
'charge' => UC_RECURRING_MENU_DISABLED,
'edit' => UC_RECURRING_MENU_DISABLED,
'view agreement' => UC_RECURRING_MENU_DISABLED,
'create profile' => array(
'title' => t('Create billing profile'),
'page arguments' => array(
'uc_recurring_hosted_paypal_wpp_profile_creation_form',
),
),
'update' => array(
'title' => t('Update account details'),
'page arguments' => array(
'uc_recurring_hosted_paypal_wpp_update_form',
),
),
'reactivate' => array(
'title' => t('Reactivate account'),
'page arguments' => array(
'uc_recurring_hosted_paypal_wpp_reactivate_form',
),
),
'cancel' => UC_RECURRING_MENU_DEFAULT,
),
'own handler' => TRUE,
);
}
return $items;
}