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

sendARPC (EMV Only)

This query string sends the ARPC to the device during an EMV transaction.

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

Parameter

Description

operation

Operation to request from MagneFlex. Use:

sendARPC

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 length.

closeDeviceAfter

Flag to close the device after the request. Use:

true – close device

false – do not close the device

readerArgument

ARPC data to send to the device. issuerAuthenticationData:, endSession:

Argument details:

issuerAuthenticationData – ARPC response to send to the device.

endSession - Flag to end the session for the device. Default value is true.

“true” = End the session after the request is processed.

“false” = Do not end the session after the request is processed.

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 app.

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/cardpostback.aspx? 
operation=sendARPC
&httpMethod=GET 
&closeDeviceAfter=true 
&readerArgument=
    issuerAuthenticationData:0030F92EDFDF540A00000000000000000000DFDF 550182DFDF250F423246363045413036313731364141FA0670048A0230300000000000
00,
    endSession:true 
&destinationURL=https://192.168.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false
&passInData=

Return Value:

The EMV ARPC response output in Hex string format of device raw response for this command.

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:

EMV_TRANS_RESULT

batchData

Batch data from the device to be passed to MagneFlex.

passInData

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

Example:

Last updated