Card Network Configuration
Use theCardType enum to configure which card types are accepted in your PayNext SDK checkout form:
diners-clubjcbmaestromastercardunionpayvisa
Card Network Details
Each card network has specific validation rules and formatting:Diners Club
Diners Club
Pattern: Cards starting with
Length: 14-16 digits
CVC: 3 digits
Example:
30[0-5] or 3[68]Length: 14-16 digits
CVC: 3 digits
Example:
3056 9300 0902 0004JCB
JCB
Pattern: Cards starting with
Length: 15-16 digits
CVC: 3 digits
Example:
35, 2131, or 1800Length: 15-16 digits
CVC: 3 digits
Example:
3530 1113 3330 0000Maestro
Maestro
Pattern: Various patterns including
Length: 12-19 digits
CVC: 3 digits
Example:
50, 56-58, 6304, 6759, 6761, 6763Length: 12-19 digits
CVC: 3 digits
Example:
6771 8980 0000 0000 021Mastercard
Mastercard
Pattern: Cards starting with
Length: 16 digits
CVC: 3 digits
Example:
5[1-5]Length: 16 digits
CVC: 3 digits
Example:
5555 5555 5555 4444UnionPay
UnionPay
Pattern: Cards starting with
Length: 16-19 digits
CVC: 3 digits
Example:
62 (excluding 627)Length: 16-19 digits
CVC: 3 digits
Example:
6200 0000 0000 0005Visa
Visa
Pattern: Cards starting with
Length: 16 digits
CVC: 3 digits
Example:
4Length: 16 digits
CVC: 3 digits
Example:
4242 4242 4242 4242Card Network Detection
The PayNext SDK automatically detects the card network based on the card number as the user types:custom component
The PayNext SDK provides real-time card network detection and validation as users enter their card details. Refer to Mount the Checkout for the complete mounting flow.