Credit Card Patterns for SCIS
Credit card patterns are regular expressions that are used to match a credit card number with its provider. SuiteCommerce InStore (SCIS) uses these regular expression in the following contexts:
-
To associate a credit card number or provider with a specific payment type.
-
To verify a credit card number when a sales associate manually enters credit card information.
To configure the credit card pattern:
-
Go to Customization > Lists, Records, & Fields > Record Types.
-
Find SCIS Payment Methods in the list, and then click List in the same row.
-
Click Edit next to the SCIS Payment Method custom record that corresponds with a credit card.
-
In the Credit Card Pattern field, copy and paste the pattern that corresponds with the credit card provider. Use the table below to find the appropriate pattern.
-
Click Save.
To configure the credit card pattern, edit the corresponding SCIS Payment Method. For more information, see Configuring SCIS Payment Methods. The following table lists the credit card patterns for each provider.
Provider |
Pattern |
---|---|
VISA |
^4[0-9]{12}(?:[0-9]{3})?$ |
MasterCard |
^(?:5[1-5][0-9]{2}|222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$ |
American Express |
^3[47][0-9]{13}$ |
Diners |
^3(?:0[0-5]|[68][0-9])[0-9]{11}$ |
Discover |
^6(?:011|5[0-9]{2})[0-9]{12}$ |
JCB |
^(?:2131|1800|35\d{3})\d{11}$ |