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 configure the credit card pattern:

  1. Go to Customization > Lists, Records, & Fields > Record Types.

  2. Find SCIS Payment Methods in the list, and then click List in the same row.

  3. Click Edit next to the SCIS Payment Method custom record that corresponds with a credit card.

  4. 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.

  5. 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}$

Related Topics

Configuring SCIS Payment Methods
Credit Card Icons

General Notices