Card Network Configuration
Use theCardType enum to configure which card types are accepted in your PayNext SDK checkout form:
discoverjcbmastercardvisa
Card Network Details
Each card network has specific validation rules and formatting:Discover
Discover
Pattern: Cards starting with
Length: 16 digits
CVC: 3 digits
Example:
6011 or 65Length: 16 digits
CVC: 3 digits
Example:
6011 1111 1111 1117JCB
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 0000Mastercard
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 4444Visa
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.