Giftcard QR Code

Hi @Bob,

I was able to read the magstripe contents on some Square gift cards used by other merchants.

The cards had values encoded on Tracks 1 and 2, with the following fields:

Track 1
Field 1. Constant ‘B’ followed by gift card number
Field 2. Constant ‘SQUARE GIFT CARD’
Field 3. some numeric field, for the two cards I had, the values were ‘9912706’ and ‘99127061583

Track2
Field 1. The numeric gift card number (no constant ‘B’)
Field2. Same numeric number from Track1 Field 3

So, an example for a gift card with card number (GAN) ‘7712345678901234’ and other number ‘99127061583’, the raw bar code data is:

%B7712345678901234^SQUARE GIFT CARD^99127061583?;7712345678901234=99127061583?

Does this answer your question?

I hope this is helpful for your purposes.

Good luck!

John

Thanks, John. Do you think the cards will work with only Track 2 and Field 1 encoded?

Hi @Bob,

I have not done extensive testing, so I really cannot speak to what Square is doing across the different platforms (e.g. Square Register that I use may handle differently than iPad).

Depending on exactly what you are trying to accomplish, I’d suggest creating some sample cards and trying them with your equipment.

As I think we may be getting a little deep in the weeds here, feel free to PM me to discuss your details. We can always post a summary here if we think it will be useful to others.

Thanks,

John

1 Like