Index: uc_worldpay.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/uc_worldpay/uc_worldpay.module,v retrieving revision 1.2 diff -u -p -r1.2 uc_worldpay.module --- uc_worldpay.module 5 Dec 2008 18:28:29 -0000 1.2 +++ uc_worldpay.module 24 Jul 2009 11:43:27 -0000 @@ -7,12 +7,12 @@ * * Original development sponsored by www.catorg.co.uk. */ - +DEFINE('UC_WORLDPAY_CALLBACK_URL', 'cart/worldpay/complete'); /** * Implementation of hook_menu(). */ function uc_worldpay_menu() { - $items['cart/worldpay/complete'] = array( + $items[UC_WORLDPAY_CALLBACK_URL] = array( 'title' => t('Order complete'), 'page callback' => 'uc_worldpay_complete', 'access arguments' => array('access content'), @@ -42,13 +42,14 @@ function uc_worldpay_payment_method() { function theme_uc_worldpay_cards() { $image_path = drupal_get_path('module', 'uc_worldpay') .'/images/'; - $title = variable_get('uc_worldpay_method_title', t('Worldpay')); - $output = theme('image', $image_path .'worldpay.png', $title .': ', $title, array('style' => 'position:relative; top:6px;')); + $title = t('Powered by RBS Worldpay'); + /* Use new logo - can be downloaded from http://www.rbsworldpay.com/images/cardlogos/poweredByRBSWorldPay.gif */ + $output = theme('image', $image_path .'poweredByRBSWorldPay.gif', $title, $title, array('style' => 'position:relative; top:6px;')); $card_types = variable_get('uc_worldpay_payment_methods', array('visa', 'electron', 'mastercard', 'maestro', 'switch', 'solo')); foreach ($card_types as $card => $title) { if ($title != "0") { - $output .= theme('image', $image_path . $card .'.gif', '', '', array('style' => 'position:relative; top:5px; margin-right:4px;')); + $output .= theme('image', $image_path . $card .'.gif', $title, $title, array('style' => 'position:relative; top:5px; margin-right:4px;')); } } @@ -71,7 +72,7 @@ function uc_payment_method_worldpay($op, '#prefix' => '
', '#value' => t('

Installation instructions

For this module to work properly you must configure a few specific options in your Worldpay account under Installation Administration settings:

-