All pages
Powered by GitBook
1 of 1

Loading...

requestStartEMVTransaction (EMV Only)

This query string begins an EMV transaction.

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

Parameter

Description

operation

Operation to request from MagneFlex. Use: requestStartEMVTransaction

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 EMV ARQC response output in Hex string format of device raw response for this command.

Example

arqcData

ARQC data from the device.

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. For requestStartEMVTransaction use:

false โ€“ do not close the device

readerArgument

Comma delimited list of arguments to be passed to MagneFlex. Arguments:

timeLimit:, cardType:, option:, amount:, transactionType:, cashBack:, currencyCode:, endSession:, quickChipMode:, reserved:

Argument details:

timeLimit - Seconds to wait before the operation times out. Value is in hexadecimal format.

(00 - FF)

transactionType - Type of transaction to be used in hexadecimal: 00 = Purchase (listed as โ€œPaymentโ€ on ICS)

01 = Cash Advance (not supported for this reader) 02 or 09 = Cash back (09 not supported, contactless) 04 = Goods (Purchase)

08 = Services (Purchase)

10 = International Goods (Purchase) 20 = Refund

40 = International Cash Advance or Cash Back 80 = Domestic Cash Advance or Cash Back

cardType - Card type that can be used for the transaction:

1 = Magnetic stripe

2 = Contact smart card

3 = Magnetic stripe or contact smart card

amount - The amount to be used and authorized, EMV Tag 9F02. Format in decimal.

cashBack - Amount of cash back to be used, EMV Tag 9F02. Format in decimal.

currencyCode - Transaction Currency Code (EMV Tag 5F2A, format n4 string)

Sample valid values:

0840 = US Dollar 0978 = Euro

0826 = UK Pound

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.

quickChipMode - Flag to start the transaction to accommodate qwick Chip mode.

โ€œtrueโ€ = Accommodate qwick chip mode.

โ€œfalseโ€ = Do not accommodate qwick chip mode.

reserved - These are the reserved bytes beginning at index 20

of the 0xA2 command. Reference device manual D99875585 for more details.

Example:

0000000000000000000000000840000100 โ€“ QuickDip Mode

0000000000000000000000000840000003 โ€“ PIN Verify

0000000000000000000000000840000004 โ€“ PIN Set

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.

Parameter

Description

errorCode

Error status. This parameter is only available when the status is not successful.

errorMessage

Description of the errorCode. This parameter is only available when the status is not successful.

opType

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

EMV_ARQC_RESULT

https://192.168.10.100/magneflexdemo/default.aspx? 
operation=requestStartEMVTransaction 
&httpMethod=GET
&closeDeviceAfter=true 
&readerArgument=
    timeLimit:3C, 
    cardType:02, 
    option:00, 
    amount:9.99, 
    transactionType:00, 
    cashBack:0.0, 
    currencyCode:0840, 
    endSession:true, 
    quickChipMode:false,
    reserved:00000000000000000000000008400001
&destinationURL=https:/192.68.10.100/magneflexdemo/cardpostback.aspx 
&requestLocation=false
&passInData=testData
https://192.168.10.100/magneflexdemo/cardpostback.aspx?opType=EMV_ARQC &arqcData=0211F982020DDFDF540A00000000000000000000DFDF550182DFDF250F42 3246363045413036313731364141FA8201E3708201DFDFDF5301005F20164D41535445
52434152442F4155544F4D4154494F4E49DFDF4D263B35353535303030303230303034
3434343D313830363230313030303030303030303030303FDFDF520105F882018EDFDF
59820170A95450D8E8376FBF7105F641858BD1E5945ABB7196759757BE9923631B7C5A
3B530D27DB156E3321EEB740D5BC29EF85639CC678F4FB7FD1891FA6FFD6F696A9701A F8FC9C3C84FF98B8C05DD386048426C1FD2892C092D17CAB172A47C0C95899EDF64388 6DC9DA910203D09186ABF09BE524ABE33A9AD73703F59C6FD5727C468650CB975D92D5 BB0DE359163527A8C04130626CC27A1B5C63598E3E7F26F367866A563AB091EC35A14D 4F392522132FC5097E3757EFC52174445090DE44100FB453FD4BE077DB24F6D99E00EE BB92C9FD6604723C6E2393BA0F2F2A70F9A915D91E0A02D88A8807A77E7739F1CBCDCA 791E647B56AD146C83AA57CD300589A60042A51BE3233C59F8AEE25F1D207F14FF8E0A
968560612654F7B944B8B63ADF3467B24445D5FBE40DE8A2C46171461FD1D577ADDC56
8EB21A13E2913CA19C0FAE06BD8FE16B9B349481721D365BE5EA68BBACA63CDD76A780
45ED1C128A90EF166F2DED19239ED6AF35DCA40128DADFDF560A9010010B2F60EA0001 C3DFDF570180DFDF5801030000000000000011223344&passInData=testdata