function uc_2checkout_uc_payment_method in Ubercart 7.3
Implements hook_uc_payment_method().
See also
File
- payment/
uc_2checkout/ uc_2checkout.module, line 66 - Integrates 2Checkout.com's redirected payment service.
Code
function uc_2checkout_uc_payment_method() {
$path = base_path() . drupal_get_path('module', 'uc_2checkout');
$title = variable_get('uc_2checkout_method_title', t('Credit card on a secure server:'));
$title .= '<br />' . theme('image', array(
'path' => drupal_get_path('module', 'uc_2checkout') . '/2co_logo.jpg',
'attributes' => array(
'class' => array(
'uc-2checkout-logo',
),
),
));
$methods['2checkout'] = array(
'name' => t('2Checkout'),
'title' => $title,
'review' => variable_get('uc_2checkout_check', FALSE) ? t('Credit card/eCheck') : t('Credit card'),
'desc' => t('Redirect to 2Checkout to pay by credit card or eCheck.'),
'callback' => 'uc_payment_method_2checkout',
'redirect' => 'uc_2checkout_form',
'weight' => 3,
'checkout' => TRUE,
'no_gateway' => TRUE,
);
return $methods;
}