function uc_payment_pack_payment_method in Ubercart 6.2
Same name and namespace in other branches
- 5 payment/uc_payment_pack/uc_payment_pack.module \uc_payment_pack_payment_method()
Implements hook_payment_method().
File
- payment/
uc_payment_pack/ uc_payment_pack.module, line 51 - Provides the Check/Money Order, COD, and "Other" payment methods.
Code
function uc_payment_pack_payment_method() {
$methods[] = array(
'id' => 'check',
'name' => t('Check'),
'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[] = array(
'id' => 'cod',
'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[] = array(
'id' => 'other',
'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;
}