Mohamed Muflahi
Programmer
I am trying to get Mag Stripe Data from the built-in swiper on an Oracle workstation, I am running the following function and it is detecting the swipe, but all three tracks aren't printing a value, even though the card does have data on it (it is a gift card, which has numbers on track 2).
[ExtensibilityMethod]
public void ReadGiftCard()
{
var parms = new Micros.Ops.Input.RequestEntryParameters();
parms.AllowMagCard = true;
parms.RequestEntryType = Micros.Ops.Input.RequestEntryType.String; //I've tried default and numeric as well same issue
var response = OpsContext.RequestEntry(parms);
if (response.EntryMethod == Micros.Ops.Input.ResponseEntryMethod.MagCard)
{
var mag = response as Micros.Ops.Input.InputResponseMagCard;
OpsContext.ShowMessage(string.Format("Track1", mag.Track1));
OpsContext.ShowMessage(string.Format("Track2", mag.Track2));
OpsContext.ShowMessage(string.Format("Track3", mag.Track3));
}
}
[ExtensibilityMethod]
public void ReadGiftCard()
{
var parms = new Micros.Ops.Input.RequestEntryParameters();
parms.AllowMagCard = true;
parms.RequestEntryType = Micros.Ops.Input.RequestEntryType.String; //I've tried default and numeric as well same issue
var response = OpsContext.RequestEntry(parms);
if (response.EntryMethod == Micros.Ops.Input.ResponseEntryMethod.MagCard)
{
var mag = response as Micros.Ops.Input.InputResponseMagCard;
OpsContext.ShowMessage(string.Format("Track1", mag.Track1));
OpsContext.ShowMessage(string.Format("Track2", mag.Track2));
OpsContext.ShowMessage(string.Format("Track3", mag.Track3));
}
}