You are here

function uc_recurring_hosted_paypal_wps_process in UC Recurring Payments and Subscriptions 7.2

Same name and namespace in other branches
  1. 6.2 modules/uc_recurring_hosted/uc_recurring_hosted.module \uc_recurring_hosted_paypal_wps_process()

Create the recurring fee.

1 string reference to 'uc_recurring_hosted_paypal_wps_process'
uc_recurring_hosted_recurring_info in modules/uc_recurring_hosted/uc_recurring_hosted.module
Implements hook_recurring_info().

File

modules/uc_recurring_hosted/uc_recurring_hosted.module, line 560
Provides hosted gateway specific code for recurring payments, specifically Authorize.net ARB and Paypal WPS

Code

function uc_recurring_hosted_paypal_wps_process($order, &$fee) {

  // the recurring payment is setup at the time of product purchase
  if (!empty($_POST['subscr_id'])) {
    $fee->data['subscr_id'] = $_POST['subscr_id'];
    return TRUE;
  }
  return FALSE;
}