Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For anyone interested:5326110575294213 #696

Open
Gjbf677 opened this issue Jul 30, 2022 · 2 comments
Open

For anyone interested:5326110575294213 #696

Gjbf677 opened this issue Jul 30, 2022 · 2 comments

Comments

@Gjbf677
Copy link

Gjbf677 commented Jul 30, 2022

For anyone interested:

    onCreditCardTypeChanged: function (type) {
      console.log(type) ;
      switch(type) {
        case 'amex' :
          ccLength = [15] ;
          cvcLength = 4 ;
          break ;
        case 'mastercard' :
          ccLength = [16] ;
          cvcLength = 3 ;
          break ;
        case 'visa' :
          ccLength = [13,16] ;
          cvcLength = 3 ;
          break ;
        case 'diners' :
          ccLength = [14,15,16,17,18,19] ;
          cvcLength = 4 ;
          break ;
        case 'discover' :
          ccLength = [16] ;
          cvcLength = 3 ;
          break ;
        case 'jcb' :
          ccLength = [16] ;
          cvcLength = 3 ;
          break ;
        case 'jcb' :
          ccLength = [16] ;
          cvcLength = 3 ;
          break ;
        case 'dankort' :
          ccLength = [16] ;
          cvcLength = 3 ;
          break ;
        case 'uatp' :
          ccLength = [15] ;
          cvcLength = 3 ;
          break ;
        case 'mir' :
          ccLength = [16,19] ;
          cvcLength = 3 ;
          break ;
        case 'unionpay' :
          ccLength = [16,17,18,19] ;
          cvcLength = 3 ;
          break ;
      }
    }

Originally posted by @rolinger in #688 (comment)

@rolinger
Copy link

@Gjbf677 - Why are you referring opening new issues, with no comments or questions, that only refer to other active issues?

@Takyon21
Copy link

ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants