Skip to content

Instantly share code, notes, and snippets.

View robbiegd's full-sized avatar
🏠
Working from home

Robert Johnson robbiegd

🏠
Working from home
View GitHub Profile
@robbiegd
robbiegd / GetCardSwipe.js
Created August 1, 2016 20:04 — forked from marothstein/GetCardSwipe.js
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.