Skip to content

Instantly share code, notes, and snippets.

View jbaumbach's full-sized avatar

John Baumbach jbaumbach

  • Ergocentric Software, Inc.
  • Los Angeles, CA
View GitHub Profile
@marothstein
marothstein / GetCardSwipe.js
Last active September 30, 2022 18:00
Basic implementation of methods needed to receive swiped credit card data with javascript.
/*
* Basic implementation of methods needed to receive swiped credit card data with javascript.
*
* NOTE: PCI compliance specifies that card data must never be stored in an unencrypted manner, and
* only certain pieces of card data can be stored persistently. Ensure that output logging is NOT
* stored persistently when using this file, as it contains console.log messages that are intended
* to educate the user, and these messages contain data that may compromise your PCI compliance posture.
*
* If you choose to use any of this code with real credit card data, it is your responsibility
* to remove all log statements, output, or other code that may serve to persist offending information.