4 replies [Last post]
duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
Was this information Helpful?

I'm using drupal 5.7 with ubercart 5.x-1.0-beta7

I keep getting this error message:

"There are no payment methods configured for orders with recurring fees!"

tested with "credit card" and "2CO" methods... keep getting same error...

and looking at the 'uc_recurring.module' there should be a selection for the recurring fee under the "feature" tab of the product... but nothing is showing.

// Adds the settings for the recurring module on the feature settings form.
function uc_recurring_settings_form() {
  $form['uc_recurring_handler'] = array(
    '#type' => 'select',
    '#title' => t('Recurring fee handler'),
    '#description' => t('Select a module to process recurring fees on your site.'),
    '#options' => drupal_map_assoc(module_implements('recurring_fee', TRUE)),
    '#default_value' => variable_get('uc_recurring_handler', 'uc_recurring'),
  );
  foreach (_payment_method_list() as $method) {
    $options[$method['id']] = $method['name'];
  }
  $form['uc_recurring_payment_methods'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Valid payment methods for orders with recurring fees'),
    '#description' => t('Only selected payment methods will be available for customers purchasing products with recurring fees.<br/>It is up to you to make sure your chosen handler is compatible with the payment methods you select.<br />For example, the uc_recurring handler is only compatible with the Credit Card payment method.'),
    '#options' => $options,
    '#default_value' => variable_get('uc_recurring_payment_methods', array()),
  );
  $form['uc_recurring_checkout_process'] = array(
    '#type' => 'checkbox',
    '#title' => t('Attempt to process recurring fees during checkout.'),
    '#default_value' => variable_get('uc_recurring_checkout_process', TRUE),
  );
  $form['uc_recurring_checkout_fail'] = array(
    '#type' => 'radios',
    '#title' => t('Action to take if a recurring fee fails to process during checkout'),
    '#description' => t('Regardless of your selection, an admin comment will report the failure.<br/><strong>Note:</strong> Even if you select the first option, checkout will complete if another payment has already been captured.'),
    '#options' => array(
      'fail' => t('Return a failed message and do not complete checkout.'),
      'proceed' => t('Return a failed message but complete checkout.'),
      'silent' => t('Show no message and complete checkout.'),
    ),
    '#default_value' => variable_get('uc_recurring_checkout_fail', 'fail'),
  );

  return $form;
}

duntuk's picture
Offline
Joined: 11/02/2007
Juice: 77
found the link...

ok... figured it out...

the link is here:

/admin/store/settings/products/edit/features

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: found the link...

You're entering uncharted territory... I've yet to post up some good uc_recurring.module documentation. Thanks for toughing it out and finding things. Smiling

murokoma's picture
Offline
Joined: 09/04/2009
Juice: 4
Getting error message...

Hi there,

getting this

Fatal error: Cannot redeclare uc_recurring_test_gateway_renew() (previously declared in /sites/all/modules/ubercart/payment/uc_credit/test_gateway.module:74) in /sites/all/modules/uc_recurring/modules/uc_recurring.test_gateway.inc on line 84

error message when trying to access the admin path you mentioned with the latest dev.

Regards,
Robert

grobot's picture
Offline
Joined: 04/12/2008
Juice: 289
Robert The error message

Robert

I'm not sure how your comment relates to the original thread under discussion (if at all). If not, you'll find you have a much easier time having your voice heard and getting your questions answered by starting a new thread. If you believe your issue is related to the comments which precede yours, then you can clarify that by saying something like, "I'm getting the same error message as _____ above each time I do ______".

The error message you're seeing means exactly what it says - the function uc_recurring_test_gateway_renew() is defined both in /sites/all/modules/ubercart/payment/uc_credit/test_gateway.module and /sites/all/modules/uc_recurring/modules/uc_recurring.test_gateway.inc.

A couple of options:

1. You could disable the module uc_credit/test_gateway.module entirely.
2. You could inspect the two blocks of code, and remove the definition of uc_recurring_test_gateway_renew() which least suits your purposes (but this might break one or the other module).

Giant Robot - for campaign, charity, ngo & online store solutions - www.giantrobot.co.nz