All pages
Powered by GitBook
1 of 1

Loading...

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

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:

Return Value:

The CardSwipe output in TVL format.

Example:

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.

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.

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

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=
https://192.168.10.100/magneflexdemo/cardpostback.aspx?errorCode=0&errorMessage=OK&opType=CARD_SWIPE_RESULT&cardDataIn=FA820178DFDF250F42324 6363045413036313731364141F4820161DFDF300100DFDF314A2542353535353030303
032303030343434345E4D4153544552434152442F4155544F4D4154494F4E495E31383
0363230313030303030303030303030303030303030303030303030303FDFDF320100D 
FDF33263B353535353030303032303030343434343D313830363230313030303030303 
030303030303FDFDF340100DFDF3500DFDF3750A7803ECF28219BB1C955D7A88FC281B 
A663BE8590491D04FD7FD33BEAEB0B7ADD52B0FC39EEED677408FA65D68B5130D230EB 
99B769D05EE42AF6CE5FF09E335E2C8686D9C95FEB6D957771BEA899CDEDFDF3928112
1CC637D0F5921D8ED05FDCAE436C93384BC949C12FC85F34C29E3951A85D797765959D
44514F0DFDF3B00DFDF3C383B61305D74C5B8FD39A3F9D7733F5F435F173ADE58897A4
07D4ED41D1F84BA7F2EA091D035B2990A0722C193F64BF1E7AD038BD3C0690D81DFDF4
30461401000DFDF500A9010010B2F60EA0001B9&passInData=