/n software 3-D Secure V2 C++ Edition

Questions / Feedback?

TrackData Property

Magnetic stripe data read off the credit card.

Syntax

ANSI (Cross Platform)
char* GetTrackData();
int SetTrackData(const char* lpszTrackData); Unicode (Windows) LPWSTR GetTrackData();
INT SetTrackData(LPCWSTR lpszTrackData);
@property (nonatomic,readwrite,assign,getter=trackData,setter=setTrackData:) NSString* trackData;
- (NSString*)trackData;
- (void)setTrackData:(NSString*)newTrackData;
#define PID_CARDVALIDATOR_TRACKDATA 8

IPWORKS3DS_EXTERNAL void* IPWORKS3DS_CALL IPWorks3DS_CardValidator_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKS3DS_EXTERNAL int IPWORKS3DS_CALL IPWorks3DS_CardValidator_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

This property may be set with the magnetic stripe read off the back of a credit card using any commercially available card reader. You may set this property with either Track1 or Track2 data. If TrackData is set, the values contained in CardNumber, CardExpMonth, and CardExpYear are ignored when calling ValidateCard. Instead, these properties are parsed out of the track data. This allows you to easily retrieve the expiration date and card number from either Track1 or Track2 data. For instance:


CardValidator1.TrackData = "4012000033330026=21121015432112345678"
CardValidator1.ValidateCard()

The CardNumber, CardExpMonth, and CardExpYear will now contain the values parsed from the track data. TrackType will also indicate whether the TrackData is Track1 or Track2 (in this case, it's Track2 data).

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
/n software 3-D Secure V2 C++ Edition - Version 2.2 [Build 8318]