When you swipe a crefit card you get the following:
%BXXXXXXXXXXXXXXXX^LAST NAME/FIRST NAME ^YRMT101000000000010093436000000?;XXXXXXXXXXXXXXXX=YRMT10110093436?
WHERE XXXXXXXXXXXXXXXX is the credit card #, YR- expiration date year MT-expiration date month
I have a web form that will swipe a card's raw data into, I need a Java script that would take that card data and spit it up into human friendly fields like so:
Credit card #: XXXXXXXXXXXXXXXX
First Name: FIRST NAME
Last Name: LAST NAME
I will still need the raw data intact in the field it was swiped to but copy out the relevant data to other text fields in the form.