ec_pretty_creditcard_type creditcard_typeWhat it does:
Returns the credit card type based on the one-or-two-letter code for that type.Defined in: /web/philip/tcl/ecommerce-utilities.tcl
Source code:
if { $creditcard_type == "a" || $creditcard_type == "ax"} {
return "American Express"
} elseif { $creditcard_type == "v" || $creditcard_type == "vs"} {
return "Visa"
} elseif { $creditcard_type == "m" || $creditcard_type == "mc"} {
return "MasterCard"
} else {
return "Unknown"
}