Jump to:
| Project: | Sage Pay Go Direct Payment Gateway for Ubercart |
| Version: | 6.x-1.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
This is sort of a duplicated of http://drupal.org/node/576924 but I realised that was for version 5 not 6.
Anyway I have a couple of problems
1. If I disable card type selection on checkout form it does not seem to automatically recognise the card type and I get the following error when the order is submitted:
We were unable to process your credit card payment. Please verify your card details and try again. If the problem persists, contact us to complete your order.
If I enable and put in the list of card codes it works fine, however I don't like the fact that you cannot format the text that is displayed to the customer on the drop down, some will be obvious to the customer but ones such as UKE may confuse them. greg.harvey mentioned using hook_form_alter to hide the drop down but I don't understand how that will help.
2. This is probably more of a feature request but there are only the default 4 Accepted Card Types available, but Sagepay accepts many others and this is not shown at the checkout.
Comments
#1
I too want to have ability of adding card icons at there. Please!!
#2
I have added the card type icons by creating a custom module with the following code
function custom_form_alter(&$form, $form_state, $form_id) {switch($form_id) {
case 'uc_cart_checkout_form':
$cc_types = array('visa', 'delta','electron', 'mastercard', 'maestro', 'solo', 'amex', 'diners', 'jcb');
foreach ($cc_types as $type) {
$card .= ' <img src="'. base_path() . drupal_get_path('module', 'custom') .'/protx_cards/' .$type . '.gif" alt="" id="accepted_card_types" height="26px" style="position: relative; top: 5px;"/>';
}
$form['panes']['payment']['payment_method']['#title'] = t('Accepted cards');
$form['panes']['payment']['payment_method']['#required'] = FALSE;
$form['panes']['payment']['payment_method']['credit']['#value'] = $card;
break;
}
}
Just copy the protx_cards directory to your custom module directory and it should do the trick.
#3
Sorry to get to this issue this late.
Anyway, I've addressed the first bit of this issue on #576924: Setting up card types for use with Direct, please read there on how this module works that supports more human friendly CC type names.
As for 2., I am gonna leave this issue open as a feature request to see whether I'll add it or someone else ever post a patch.
#4
See http://www.ubercart.org/forum/support/13263/accepted_card_types_validation for further information on adding credit card logos if you have multiple payment options.
#5
Let's get #528454: No support for Maestro, Laser, Diners, Solo into Ubercart core rather than fixing this only in the Sage Pay module.