Project:Sage Pay Go Direct Payment Gateway for Ubercart
Version:6.x-1.x-dev
Component:User interface
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

Quick support request, as I'm slightly confused when it comes to configuring cards. Under admin/store/settings/payment/edit/methods I have entered a list of cards that SagePay supports (taken from http://techsupport.protx.com/cardtypes.asp#Whatcardsupp) so my drop-down list of card types is correct. But I'm wondering, how does this correspond to SagePay? Or doesn't it matter? Is this just for user reference and SagePay *knows* what sort of card it is from the form and digits of the card number?

Thanks! =)

Comments

#1

I need some information on this too. I have added the following to CARD TYPE SELECT BOX OPTIONS:

VISA
DELTA
UKE
MC
SWITCH
MAESTRO
SOLO
AMEX
DINERS
JCB

as this seems to be the only way for it to work correctly. However this is not ideal as some of this descriptions won't be recognisable by the customer. So is there anyway to change the description in the drop down that the customer sees.

#2

"some of this descriptions won't be recognisable by the customer"

But that doesn't matter, surely? If you have a JCB card, you know what it is and you pick it? =/

I probably don't understand your problem.

To follow up on my initial post, yes, SagePay automatically works out from the number format what sort of card it is, so the actual card select box could be utter nonsense - it doesn't matter. It's only there to make people feel warm and fuzzy inside. It seems...

#3

I'm more than happy not to have the card selection box but if I disable it I get the following error

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.

I currently have it in test mode.

#4

Then hide it with hook_form_alter.

#5

Version:5.x-1.6» 6.x-1.x-dev
Status:active» fixed

Sorry I haven't commented in before.

You can use most human friendly names (unless too custom) in the ubercart cc config and this module will support them, something like the following will work:

Delta
Visa Electron
Visa
Mastercard
Solo
Maestro
American express
Diner
JCB

For those who 'reads' php code and understands regular expressions, you may use other variants as well:

<?php
 
// Validate Card Type data from select list.
  // 'VISA', 'MC', 'DELTA', 'SOLO', 'MAESTRO', 'UKE', 'AMEX', 'DC' or 'JCB'
 
$searches = array(
   
'`.*?delta.*`i' => 'DELTA',// Visa Delta needs to take precedence in this list over ordinary Visa
   
'`.*?electron.*`i' => 'UKE', // Visa Electron needs to take precedence in this list over ordinary Visa
   
'`.*?visa.*`i' => 'VISA',
   
'`.*?master[ ]*card.*`i' => 'MC',
   
'`.*?solo.*`i' => 'SOLO',
   
'`.*?(maestro|switch).*`i' => 'MAESTRO',
   
'`.*?(amex|american[ ]*express).*`i' => 'AMEX',
   
'`.*?diner.*`i' => 'DC',
   
'`.*?jcb.*`i' => 'JCB',
  );
?>

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.