Y
Y
Yuri Denisov2015-04-24 10:49:41
Programming
Yuri Denisov, 2015-04-24 10:49:41

What to write on the magnetic stripe on the discount card?

Good day to all!
We make a discount card on behalf of the company. All partners will have different discounts.
It is necessary that the card is valid in supermarkets and other places with which an agreement has been concluded.
I re-read the information and roughly understood that any of the 3 tracks of the magnetic stripe can be used to record data. You need to write down the data to which you would like to get instant access. So here's the question.
I composed the text of the first track like this:
%OOODAF=28956B000010?
Here OOODAF is the name of the company, 28956 characters before the card number, so that you can’t just manually enter the card number to the cashier and get a discount, B000010 is the card number, respectively.
Tell me if this entry is correct and will it be possible to read it normally in the future, understand and process supermarket programs, etc.? Is this information enough for them or not? Can anyone come across?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2015-04-24
@denissov

Doing it for myself, I would add not the magic 28956, but the control hash (salt + number). Well, for a group of companies - you need to look at the requirements of the others, what tracks and in what formats they use.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question