For the complete documentation index, see llms.txt. This page is also available as Markdown.
Page cover

MTSCRA Functions - 11 - 20

clearBuffers

This function clears the SDK library’s local cache of card swipe data.

(void) clearBuffers

Parameters: None

Return Value: None

listenForEvents

This function sets a callback function to notify when the device has card data to send to the host or when the device state changes. See example in Open Device code example.

(void) listenForEvents:(UInt32)event

Parameters: Event

Parameter

Description

event

Event type.

  • TRANS_EVENT_OK = Transaction succeeded.

  • TRANS_EVENT_START = Reader started sending data.

  • TRANS_EVENT_ERROR = Reader failed sending data.

Return Value: None

getMaskedTracks [iDynamo/uDynamo Only]

This function retrieves masked card track data after a cardholder swipes a card. Only available on iDynamo/uDynamo; other devices will return an empty string.

(NSString *) getMaskedTracks

Parameters: None

Return Value:

Return stored masked track data string. Tracks are delimited with start and end sentinels.

getTrack1Masked

This function retrieves masked track 1 data after a cardholder swipes a card.

Parameters: None

Return Value: Return stored masked track1 data string.

getTrack2Masked

This function retrieves masked track 2 data, if any, after a cardholder swipes a card.

Parameters: None

Return Value: Return stored masked track2 data string.

getTrack3Masked

This function retrieves masked track 3 data, if any, after a cardholder swipes a card.

Parameters: None

Return Value: Return stored masked track3 data string.

getCardPAN

This function retrieves masked PAN data, if any, after a cardholder swipes a card.

Parameters: None

Return Value: Return stored masked PAN data string.

getTrack1

This function retrieves the card’s track 1 data in encrypted format after a cardholder swipes a card.

Parameters: None

Return Value: String containing encrypted track 1 data.

getTrack2

This function retrieves the card’s track 2 data in encrypted format, if any, after a cardholder swipes a card.

Parameters: None

Return Value: String containing encrypted track 2 data.

getTrack3

This function retrieves the card’s track 3 data in encrypted format, if any, after a cardholder swipes a card.

Parameters: None

Return Value: String containing encrypted track 3 data.q

Last updated