Switch
Solo
China Union Pay
+ Laser
Unknown
"Not a credit card" is returned on obviously invalid data values.
be treated as in a different country by setting
C<$Business::OnlinePayment::Country> to your two-letter country code. This
is probably what you want to determine if you accept the card, or which
-merchant agreement is is processed through.
+merchant agreement it is processed through.
You can also set C<$Business::OnlinePayment::Country> to a false value such
as the empty string to return the "base" card type. This is probably only
return "China Union Pay"
if $number =~ /^622[\dx]{13}$/o;
+ return "Laser"
+ if $number =~ /^6(304|7(06|09|71))[\dx]{12,15}$/o;
+
return "Unknown";
}