MagneticStripeReaderTrackData
MagneticStripeReaderTrackData
MagneticStripeReaderTrackData
MagneticStripeReaderTrackData
Class
Definition
Contains the track data obtained following a card swipe.
public : sealed class MagneticStripeReaderTrackData : IMagneticStripeReaderTrackDatapublic sealed class MagneticStripeReaderTrackData : IMagneticStripeReaderTrackDataPublic NotInheritable Class MagneticStripeReaderTrackData Implements IMagneticStripeReaderTrackData// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
This object is accessed when you retrieve the Track1, Track2, Track3, and Track4 properties of the MagneticStripeReaderReport object.
Properties
Data Data Data Data
Gets the raw or decoded data from the swiped card.
public : IBuffer Data { get; }public IBuffer Data { get; }Public ReadOnly Property Data As IBuffer// You can use this property in JavaScript.
Remarks
If IsDecodeDataEnabled is true, then Data contains decoded data.
If IsTransmitSentinelsEnabled is false, then Data contains the track data between sentinels, but not including the start and end sentinels. If IsTransmitSentinelsEnabled is true, then the track data includes the start and end sentinels.
DiscretionaryData DiscretionaryData DiscretionaryData DiscretionaryData
Gets the discretionary data from the swiped card.
public : IBuffer DiscretionaryData { get; }public IBuffer DiscretionaryData { get; }Public ReadOnly Property DiscretionaryData As IBuffer// You can use this property in JavaScript.
Remarks
The array will always be empty if IsDecodeDataEnabled propety is false.
EncryptedData EncryptedData EncryptedData EncryptedData
Gets the encrypted data from the swiped card.
public : IBuffer EncryptedData { get; }public IBuffer EncryptedData { get; }Public ReadOnly Property EncryptedData As IBuffer// You can use this property in JavaScript.
Remarks
This property is empty if the DataEncryptionAlgorithm is set to None.