We already handle that in the code, you can name your credit card types anything shown on the 'if' lines below, and we'll change the CardType to the matching value SagePay expects:
Code:
if ("discover" == CardType.Trim().ToLowerInvariant())
{
CardType = "DC";
}
else if ("mastercard" == CardType.Trim().ToLowerInvariant())
{
CardType = "MC";
}
else if ("switch/ukmaestro" == CardType.Trim().ToLowerInvariant())
{
CardType = "SWITCH";
}
else if ("delta/visadebit" == CardType.Trim().ToLowerInvariant())
{
CardType = "DELTA"; //Confirm that Visa Debit is DELTA
}
else if ("visaelectron" == CardType.Trim().ToLowerInvariant())
{
CardType = "UKE";
}
else
{
CardType = CardType.ToUpperInvariant().Trim();
}
return CardType;
Using anything other than those card type names would take some source mods.