You are here

function uc_recurring_cybersource_process in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 includes/uc_recurring.uc_cybersource.inc \uc_recurring_cybersource_process()

Set up the recurring fee by creating a CIM profile for future payments

Parameters

$order: The order object.

$fee: The fee object.

Return value

TRUE if recurring fee setup

1 string reference to 'uc_recurring_cybersource_process'
uc_recurring_uc_cybersource_recurring_info in includes/uc_recurring.uc_cybersource.inc
Implements hook_recurring_info().

File

includes/uc_recurring.uc_cybersource.inc, line 51
Uc recurring implementation for the CyberSource module.

Code

function uc_recurring_cybersource_process($order, &$fee) {
  $fee->fee_handler = 'cybersource';
  if (variable_get('uc_cybersource_soap_create_profile', FALSE) == FALSE) {

    // The uc_cybersource module doesn't yet support UC_CREDIT_REFERENCE_SET
    return _uc_recurring_cybersource_create_profile($order);
  }
  return TRUE;
}