uc_recurring.uc_credit.inc in UC Recurring Payments and Subscriptions 6.2
Same filename and directory in other branches
Uc recurring implementation for the credit card module.
File
includes/uc_recurring.uc_credit.incView source
<?php
/**
* @file
* Uc recurring implementation for the credit card module.
*/
/**
* Implementation of hook_recurring_info().
*/
function uc_recurring_uc_credit_recurring_info() {
$gateway = uc_credit_default_gateway();
$items['credit'] = array(
'name' => t('Credit card'),
'payment method' => 'credit',
'module' => 'uc_recurring',
'fee handler' => $gateway,
'process callback' => 'uc_recurring_uc_credit',
'renew callback' => 'uc_recurring_uc_credit',
'cancel callback' => 'uc_recurring_uc_credit',
);
return $items;
}
/**
* Credit card process and renew.
*/
function uc_recurring_uc_credit($order, &$fee, $op) {
// Invoke the correct payment method.
return uc_recurring_invoke($fee->fee_handler, $op, array(
$order,
&$fee,
));
}
Functions
Name | Description |
---|---|
uc_recurring_uc_credit | Credit card process and renew. |
uc_recurring_uc_credit_recurring_info | Implementation of hook_recurring_info(). |