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

Uncaught TypeError: $.formance.formatCardNumber is not a function (with fix) #24

Open
mkaatman opened this issue Sep 4, 2015 · 0 comments

Comments

@mkaatman
Copy link

mkaatman commented Sep 4, 2015

Uncaught TypeError: $.formance.formatCardNumber is not a function

value = $.formance.formatCardNumber(value); doesn't exist the corrected line is:
value = $.formance.formatCreditCardNumber(value);

  reFormatCardNumber = function(e) {
    var _this = this;

    return setTimeout(function() {
      var $target, value;

      $target = $(e.currentTarget);
      value = $target.val();
      console.log($.formance);
      value = $.formance.formatCreditCardNumber(value);
      return $target.val(value);
    });
  };
mkaatman added a commit to mkaatman/jquery.formance that referenced this issue Sep 4, 2015
Pasting a card number into a CC field throws uncaught exception that formatCardNumber doesn't exist

omarshammas#24
@mkaatman mkaatman mentioned this issue Sep 4, 2015
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

1 participant