You are here

function uc_payment_pack_uc_payment_method in Ubercart 7.3

Implements hook_uc_payment_method().

File

payment/uc_payment_pack/uc_payment_pack.module, line 27
Provides the Check/Money Order, COD, and "Other" payment methods.

Code

function uc_payment_pack_uc_payment_method() {
  $methods['check'] = array(
    'name' => t('Check', array(), array(
      'context' => 'cheque',
    )),
    'title' => t('Check or money order'),
    'desc' => t('Pay by mailing a check or money order.'),
    'callback' => 'uc_payment_method_check',
    'weight' => 1,
    'checkout' => TRUE,
    'no_gateway' => TRUE,
  );
  $methods['cod'] = array(
    'name' => t('COD'),
    'title' => t('Cash on delivery'),
    'desc' => t('Pay cash on delivery on pick-up.'),
    'callback' => 'uc_payment_method_cod',
    'weight' => 1,
    'checkout' => FALSE,
    'no_gateway' => TRUE,
  );
  $methods['other'] = array(
    'name' => t('Other'),
    'title' => t('Other'),
    'desc' => t('A generic payment method type.'),
    'callback' => 'uc_payment_method_other',
    'weight' => 10,
    'checkout' => FALSE,
    'no_gateway' => TRUE,
  );
  return $methods;
}