pagarme-js icon indicating copy to clipboard operation
pagarme-js copied to clipboard

CDN validation feature with unexpected result

Open vagrantsn opened this issue 6 years ago • 0 comments

Description

The validate function of the CDN returns true when passed an empty credit card number. I tested with the pagarme.min.js generated by the build script, and it worked as expected. Maybe the CDN version is outdated?

  • [x] I have tested with the latest version
  • [x] I can simulate the issue easily

Here is a pen demonstrating the issue.

Current Behavior

validate function returns true when passed an empty credit card number.

Expected Behavior

Should return false for empty values such as ''.

vagrantsn avatar Jan 26 '18 14:01 vagrantsn