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

requestCardSwipe

This query string instructs the device to prompt for a card swipe.

?operation= 
&httpMethod= 
&closeDeviceAfter= 
&readerArgument= 
&destinationURL= 
&requestLocation= 
&passInData=

Parameter

Description

operation

Operation to request from MagneFlex. Use:

requestCardSwipe

httpMethod

HTTP method to be used for the HTTP postback from MagneFlex. Use:

GET - returns the response data in the form of a query string. POST – recommended for EVM related transactions to accommodate limits on query string lengths.

closeDeviceAfter

Flag to close the device after the request. Use:

true – close device

false – do not close the device

readerArgument

Comma delimited list of arguments to be passed to MagneFlex. requestCardSwipe requires no arguments.

destinationURL

MagneFlex will send the postback to this URL.

requestLocation

Flag to send GPS location of the device from which Magneflex (iOS only) is hosted.

Use:

true – send location

false – do not send location

passInData

Optional data to send to MagneFlex. This data will be passed back to the web application.

Each input parameter supplied in the request is delimited by an ampersand character ‘&’, and the value for a parameter begins after an equal character ‘=’. Where ever a parameter contains multiple values, each are delimited by a comma character ‘,’.

Example query:

https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestCardSwipe
&httpMethod=GET
&closeDeviceAfter=true
&readerArgument= 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false
&passInData=

Return Value:

The CardSwipe output in TVL format.

Parameter

Description

errorCode

Error status. 0 is Success. Non-Zero is an error.

errorMessage

Description of the errorCode.

opType

The type of operation. For this command the value is:

CARD_SWIPE_RESULT

cardDataIn

Magnetic swipe card data in TLV format.

FA (Container for generic data) DFDF25 (Device serial number)

F4 (Container for Encrypted MSR data) DFDF30 (Masked T1 status) DFDF31 (Masked T1)

DFDF32 (Masked T2 status) DFDF33 (Masked T2)

DFDF34 (Masked T3 status) DFDF35 (Masked T3)

DFDF37 (Encrypted T1) DFDF39 (Encrypted T2) DFDF3B (Encrypted T3)

DFDF3C (Encrypted MagnePrint) DFDF43 (MagnePrint Status) DFDF50 (MSR KSN)

passInData

Optional data to send to MagneFlex. This data will be passed back to the web app.

Example:

Last updated