Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

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

@mkaatman

Description

@mkaatman

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);
    });
  };

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions