Hide last authors
Kristian Lingsom 4.1 1 (% class="WordSection1" %)
2 (((
Kristian Lingsom 19.1 3 = Overview =
Kristian Lingsom 5.2 4
Pål-Eirik Askerød 30.19 5 The purpose of the H2H PayEx link is to enable authorization and capture of card transactions, where PayEx is end host for that card, or just an PSP. The third party host acts as a gateway in between payment terminals and PayEx.
Kristian Lingsom 5.2 6
7
8 [[image:pos server.png]]
9
10
11
Kristian Lingsom 4.1 12
Kristian Lingsom 19.1 13 The third party host can be a single or dual host system.
14 PayEx has a fully redundant system, with an active/active configuration.
Pål-Eirik Askerød 30.4 15 The third party host(s) connects through PayEx load balanser.
Kristian Lingsom 19.1 16
17
Kristian Lingsom 20.1 18 == Supported massage types ==
Kristian Lingsom 19.1 19
Kristian Lingsom 4.1 20
Kristian Lingsom 21.1 21 |=Message Type|=Reference
Kristian Lingsom 23.1 22 |1100/1110|[[AUTHORISATION REQUEST>>doc:AUTHORISATION REQUEST 1100/1110]]
Kristian Lingsom 23.2 23 |1200/1210|[[FINANCIAL TRANSACTION REQUEST>>doc:.FINANCIAL TRANSACTION REQUEST 1200/1210.WebHome]]
24 |1220/1221/1230|[[FINANCIAL TRANSACTION ADVICE>>doc:FINANCIAL TRANSACTION ADVICE 1220/1221/1230]]
25 |1420/1421/1430|[[REVERSAL ADVICE>>doc:REVERSAL ADVICE 1420/1421/1430]]
26 |1820/1830|[[NETWORK MANAGEMENT>>doc:.NETWORK MANAGEMENT 1820/1830.WebHome]]
Pål-Eirik Askerød 30.3 27 |1520/1521/1530|RECONCILIATION REQUEST (**Currently not supported)**
Kristian Lingsom 4.1 28
Pål-Eirik Askerød 30.15 29 * Message types included in the table above are supported unless otherwise specified. E-g reconciliation is not currently supported.
30 Use links to different message types for details on specific messages.
Kristian Lingsom 23.3 31 Only the Financial transaction advice (1220), Reversal Advice (1420) use repeat messages. Repeats are to be sent according to xxxxxxx rules
Pål-Eirik Askerød 30.14 32 * Advice can be declined by PayEx for technical reasons. In this case the third party host need to retry the advice until manual intervention or the advice has been accepted. It’s expected that the third party implement a retry delay (to-be-defined). After 6 retry attempts have failed manual intervention by third party and PayEx support must be initiated.
Kristian Lingsom 4.1 33
Kristian Lingsom 19.1 34 == Message layout ==
35
Kristian Lingsom 16.1 36 This section covers message types and fields supported by PayEx
Kristian Lingsom 4.1 37
Kristian Lingsom 17.2 38
Kristian Lingsom 16.1 39 |=Presence|=Title|=Description
40 |C|Conditional|The data element’s presence depends on specific circumstances, witch are described either directly or by reference in the message content table.
41 |CE|Conditional echo|The response message must have the same data element if the data element was present in the original message
42 |M|Mandatory|Data element must be present in the specified message
43 |ME|Mandatory echo|The response message must have the same data element and value as sent in the original message request or advice message
44 |O|Optional|The data element may or may not be present in the message
Kristian Lingsom 17.2 45 )))
Kristian Lingsom 4.1 46
Pål-Eirik Askerød 30.15 47 Optional fields may always be present in requests, even when not needed. In such case, they will be ignored. Requests received missing a mandatory field will get action code 904 - Format Error.
Kristian Lingsom 17.2 48
49 The third party host must ignore unknown fields included in the response messages.
50
51 When no usage notes are given in the field description, the field should be used as described in IFSF [1].
52
53 The “Format”-column can contain following info:
54
55 * LL: Variable length field, max 99 bytes as data. The field contains 2 bytes holding the length of the data. Example: 303101 a one byte field with LL = 3031 and the data is 01.
56 * LLL: Variable length field, max 999 bytes as data. The field contains 3 bytes holding the length of the data. Example: 30303101 a one byte field with LLL = 303031 and the data is 01.
57 * Date/time field formats, YYMMDDhhmmss (or variations), where:
58 ** YY : Last 2 digits of the year, 00 through 99
59 ** MM: Month, 01 through 12.
60 ** DD: Day, 01 through 31
61 ** hh: Hour, 00 through 23
62 ** mm: Minutes, 00 through 59
63 ** ss: Seconds, 00 through 59
64
65 The “Type”-column can contain:
66
67 * a : Alphabetic character [a..z,A..Z]
68 * n : Numeric BCD-digit. [0..9]
69 * ans: alphabetic, numeric and special characters
70 * an : alphabetic and numeric.
71 * s : Special characters.
72 * b : Binary
73 * p: pad character, space
74 * x: “C” for credit, “D” for debit and shall always be associated with a numerical amount data element.
75
76 The “Size”-column can contain:
77
78 * Variable length fields have a size that looks like “..nn”, where nn is the maximum number of characters or bytes.
79 * A fixed length field has “n” as size content, with n the number of characters or bytes.
80
81 All fixed length “n” data elements are assumed to be right justified with leading zeroes. All other fixed length data elements are left justified with trailing spaces. In all “b” data elements, blocks of 8 bits are assumed to be left justified with trailing zeroes.
82
83
Kristian Lingsom 24.2 84 == Message protocol ==
Kristian Lingsom 17.2 85
Kristian Lingsom 24.2 86 All messages are transferred using TCP/IP sockets.
87
88 The message will be encapsulated in a transmission frame as follows:
89
90 * The first 4 digits contain the length of the message in ASCII (decimal value, most significant digit first). The length field includes all bytes from the first byte of the message ID up to the last byte of the last field.
91 * This 4-digit length field is immediately followed by the message ID, also in ASCII (decimal value, most significant digit first).
92 * An 8 byte message bitmap, which is a binary field (so not ASCII encoded).
93 * Message fields, which could be ASCII or binary encoded. The fields with format ‘n, ns, an, ans, anp or x’ are ASCII encoded, while the fields with format ‘b’ are binary encoded. The following conventions shall be applied to all data elements:
94 ** All fixed length numeric data element values shall be right justified with leading zeroes.
95 ** All fixed length data elements with alphabetic or special characters shall be left justified with trailing blanks.
96 ** All fixed length binary data elements shall be right justified with leading zeroes.
97 ** The position of a character or a bit in a data element shall be counted from the left beginning with one (1).(See also section 5.1 Attribute specification in [01])
98 ** No trailer is included.
99
100 Example: An imaginary message which consists only of a message ID “0300” and an empty bitmap (all zeros) will be transmitted as follows:
Kristian Lingsom 17.2 101
Kristian Lingsom 24.2 102
Kristian Lingsom 24.3 103 |=Length|=(((
104 Message ID
105 )))|=Bitmap
Kristian Lingsom 24.2 106 |=0x30 0x30 0x31 0x32|=0x30 0x33 0x30 0x30|=0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
107
Kristian Lingsom 24.3 108 Example: An 1820 message, without MAC, will be transmitted as follows: Message bytes (hex):
109 303035303138323002300101000000003039313031353238343133383239313030393039313031353238343138333130353130303331
110
111
112 |=Field|=Format|=Encoding|=Data|=Parsed
113 |Message Length|n|ASCII|30303530|0050
114 |Massage ID|n|ASCII|31383230|1820
Pål-Eirik Askerød 30.9 115 |Bitmap|b|Binary|0230010100000000|
Kristian Lingsom 24.3 116 |7 - Date/Time|n|ASCII|30393130313532383431|0910152841
117 |11 - STAN|n|ASCII|333832393130|382910
118 |12 - Date/Time|n|ASCII|303930393130313532383431|090910152841
119 |24 - Function code|n|ASCII|383331|831
Pål-Eirik Askerød 30.9 120 |33 - Forwarding institution identification code|n|ASCII|(((
121 30323135
122 )))|15
Kristian Lingsom 24.3 123
Pål-Eirik Askerød 30.19 124 The PayEx response timeout is set to 35 seconds. If after 35+1 seconds, no response has been received, the third party host needs to take the appropriate action based on the message type. (E.g. send a reversal)
Kristian Lingsom 24.3 125
Pål-Eirik Askerød 30.19 126 The third party host has the possibility to perform offline stand-in, thought this needs to be agreed with the individual card issuers. Otherwise the station might not be reimbursed.
Kristian Lingsom 24.3 127
Pål-Eirik Askerød 30.17 128 == ==
Pål-Eirik Askerød 30.13 129
Kristian Lingsom 25.1 130 == PIN Validation ==
131
Pål-Eirik Askerød 29.2 132 PayEx perform online PIN validation on payment cards where PayEx is the acquirer, on all other cartds PIN is validated by the third party acuirer. PayEx will not interpret P-22 Point-Of-Service code to determine if it needs to validate PIN or not on PayEx fuel cards, but 3rd patry aquirers might so it's good practice to use P-22 correctly.
Kristian Lingsom 25.1 133
134 Fields required for PIN validation are:
135
136 * P-48-14 – PIN encryption Methodology
137 * P-52 – PIN data
138 * P-53 – Security related information
139
Pål-Eirik Askerød 30.14 140 (% class="wikigeneratedid" id="H-1" %)
Pål-Eirik Askerød 30.16 141 See [[security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] for details.
Pål-Eirik Askerød 30.13 142
Pål-Eirik Askerød 30.7 143 == Security documentation ==
144
Pål-Eirik Askerød 30.12 145 Here you can find details regarding the security aspects of this H2H integration.
Pål-Eirik Askerød 30.7 146
Pål-Eirik Askerød 30.13 147 __[[SECURITY SPECIFICATION>>doc:.PayEx IFSF H2H Security specification.WebHome]]__
Pål-Eirik Askerød 30.12 148
Pål-Eirik Askerød 30.7 149
Pål-Eirik Askerød 30.18 150 == Message field overview ==
Kristian Lingsom 26.1 151
152 **P-3 PROCESSING CODE**
153
Pål-Eirik Askerød 30.13 154 Code used to describe the effect of a transaction on the customer account and the accounts affected. Currently fixed 00000000 : Goods and services
Kristian Lingsom 26.1 155
Pål-Eirik Askerød 30.13 156
Kristian Lingsom 26.1 157 **P-4 AMOUNT, TRANSACTION**
158
159 The amount is a numeric value, expressed without a decimal separator. Where a minor unit of currency applies, the relevant minor unit data element indicates the number of decimal places in the relevant amount. Example : 1 kr = 100
160
Pål-Eirik Askerød 30.13 161
Kristian Lingsom 26.1 162 **P-7 DATE AND TIME, TRANSMISSION**
163
164 Date and time of message transmission from the third party host.
165
Pål-Eirik Askerød 30.13 166
Kristian Lingsom 26.1 167 **P-11 SYSTEM TRACE AUDIT NUMBER**
168
169 Number assigned by the third party host to assist in identifying a transaction uniquely. Range 000001 till 999999. Every message must have a new STAN, repeats use the same STAN as the original message.
Pål-Eirik Askerød 30.13 170
171
Kristian Lingsom 26.1 172 **P-12 DATE AND TIME, LOCAL TRANSACTION**
173
174 Date and time of the transaction when performed on the POS.
175
Pål-Eirik Askerød 30.13 176
Kristian Lingsom 26.1 177 **P-22 POINT OF SERVICE DATA CODE**
178
179 A series of codes intended to identify terminal capability, terminal environment and presentation security data.
180
181
182 **P-24 FUNCTION CODE**
183
184 |=Function code|=Description
185 |101|Original authorization, amount estimated used in 1100
186 |200|Original financial request/advice Used in 1200/1220/1221
187 |201|Previously approved authorisation, amount the same Used in 1220/1221
188 |202|Previously approved authorisation, amount differs Used in 1220/1221
189 |400|Full reversal Used in 1420/1421
190 |831|Echo test Used in 1820
191
192 **P-25 MESSAGE REASON CODE**
193
194 |=reason code |=Description
Pål-Eirik Askerød 30.19 195 |1003|Card issuer unavailable
Kristian Lingsom 26.1 196 |1004|Terminal processed
197 |1508|On-line forced by terminal
198 |4000|Customer cancellation
199 |4020|Invalid response, no action taken
200 |4021|Timeout waiting for response
201 |4351|Cancellation - unmatched signature
202
203 **P-30 ORIGINAL AMOUNT**
204
205 The original amount data element is a constructed element of two parts with a total of 24 positions:
206 a) Original amount transaction, n 12;
207 b) Original amount reconciliation, n 12.
208 Absence of data shall be indicated by zeroes. These parts shall be used when attempting to perform a partial approval and shall contain the original amounts.
209
Pål-Eirik Askerød 30.13 210
Kristian Lingsom 26.1 211 **P-33 FORWARDING INSTITUTION IDENTIFICATION CODE**
212
213 10 digit code identifying the 3rd patry host. Each 3rd party integrated with PayEx will be assigned a unique code that they are to use in all messages where P-33 is specified.
214
Pål-Eirik Askerød 30.13 215
Kristian Lingsom 26.1 216 **P-38 APPROVAL CODE**
217
218 Code assigned by the authorising institution indicating approval.
219
Pål-Eirik Askerød 30.13 220
Kristian Lingsom 26.1 221 **P-39 ACTION CODE**
222
Kristian Lingsom 27.1 223 See action code page for codes that can be returned by PayEx.
224
Pål-Eirik Askerød 30.13 225
Kristian Lingsom 27.1 226 **P-41 Card acceptor terminal identification**
Pål-Eirik Askerød 30.6 227 Needs to be unique per POS terminal at the merchant site. For Indoor terminals use the range 1-99 and for outdoor terminals 100-199. PayEx needs to be informed of how many terminals that are installed at the merchant site.
Kristian Lingsom 27.1 228
Pål-Eirik Askerød 30.13 229
Kristian Lingsom 27.1 230 **P-42 Card acceptor identification code**
231
232 8 digit unique ID provided by PayEx for each merchant.
233
Pål-Eirik Askerød 30.13 234
Kristian Lingsom 27.1 235 **P-43 Card acceptor name/location**
236
237 The name and location of the card acceptor.
238
Pål-Eirik Askerød 30.13 239
Kristian Lingsom 27.1 240 **P-48 MESSAGE CONTROL DATA ELEMENTS**
241 Used for the control of messages between the POS and the FEP. These are present in field 48 as a variable content data element. It uses a standard bit map to identify the specific data elements present in field 48. The format is LLLVAR with a maximum length of 999. The 8 byte bit map is the first item (element 48-0) in the data element.
242
243
Pål-Eirik Askerød 30.13 244 **P-48-4 BATCH/SEQUENCE NUMBER**
245
Kristian Lingsom 27.1 246 This field identifies the transactions associated with a particular settlement period. This number starts at one and increments with each Reconciliation.
247
248
Pål-Eirik Askerød 30.13 249 **P-48-8 CUSTOMER DATA**
250
Kristian Lingsom 27.1 251 The customer data is any data entered by the customer or cashier as required by the authorizer to complete the transaction. Transactions requiring customer data may be related to fleet fuelling, cheque authorizations or any other type of retail store management functions. Up to sixteen separate entries are supported. Each entry consists of two elements, the type of customer data entered and the variable length value of the entered data. Successive entries are separated by a back-slash (\). (Note: the LVAR method is not used for these entries.) The entire data element has a maximum length of 250 bytes and is parsed as an LLLVAR field.
252
253 |=Element|=Name|=Attribute|=Description
254 |48-8-1|Number of customer data fields|n2|Count of customer data entries to follow.Note: this value must be from 1 to 16.
255 |48-8-2|Type of customer data|an 1|Identifies the type of customer data entered. (see P48-8-2)
256 |48-8-3|Value of customer data|ans...99|Data entered by customer orcashier.
257
Kristian Lingsom 28.1 258 **P-48-8-2 TYPE OF CUSTOMER DATA**
Kristian Lingsom 27.1 259
Pål-Eirik Askerød 30.19 260 1 - Vehicle ID
Kristian Lingsom 28.1 261 3 - Driver ID
262 4 - Mileage
Pål-Eirik Askerød 30.19 263
Kristian Lingsom 27.1 264
Pål-Eirik Askerød 30.19 265 **P-48-9 TRACK II OF VEHICLE CARD**
Kristian Lingsom 27.1 266
Pål-Eirik Askerød 30.19 267 Used to specify the second card in a transaction if a special card is needed in addition to the payment card to link a transaction to a loyalty account.
Kristian Lingsom 27.1 268
269
Pål-Eirik Askerød 30.13 270 **P-48-14 PIN ENCRYPTION METHODOLOGY**
Pål-Eirik Askerød 30.5 271
Pål-Eirik Askerød 30.13 272 See [[security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] section for details.
Pål-Eirik Askerød 30.5 273
Kristian Lingsom 27.1 274
275 **P-48-37 VEHICLE IDENTIFICATION ENTRY MODE**
276 Only present when a vehicle number is available (P48-8). Defines how the vehicle number was entered:
277
278 0 - Manual entry
279 1- On the Card
Pål-Eirik Askerød 30.19 280 2 - Automatic License Plate Recognition
Kristian Lingsom 27.1 281
Pål-Eirik Askerød 30.13 282
Kristian Lingsom 27.1 283 **P-48-38 PUMP LINKED INDICATOR**
284
Kristian Lingsom 28.1 285 Indicating whether the fuel pump reading is is linked to the payment terminal:
Kristian Lingsom 27.1 286 0 – Unspecified
287 1 – Pump-linked
288 2 – Pump not linked
289
290
291 **P-48-39 DELIVERY NOTE NUMBER**
292 Number allocated by the terminal given to the customer as printed on the ticket.
293
Pål-Eirik Askerød 30.13 294
Kristian Lingsom 27.1 295 **P-49 CURRENCY CODE , TRANSACTION**
296 All transactions are in local currency, as defined during system installation. Actual value is as defined by ISO 4217.
297
Pål-Eirik Askerød 30.13 298
Kristian Lingsom 27.1 299 **P-52 PIN DATA**
Kristian Lingsom 28.1 300
Pål-Eirik Askerød 30.13 301 See[[ security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] section for details.
Kristian Lingsom 28.1 302
Pål-Eirik Askerød 30.13 303
Kristian Lingsom 28.1 304 **P-53 SECURITY RELATED CONTROL INFORMATION**
305
Pål-Eirik Askerød 30.13 306 See[[ security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] section for details.
Kristian Lingsom 28.1 307
308
Kristian Lingsom 28.2 309 **P-56 ORIGINAL DATA ELEMENTS**
310
311 Data elements of original transaction which contains the original “message identifier”, original “STAN” and original “date and time – local transaction”. This must be present if the message is preceded by an 1100 Authorisation Request, it can be omitted if the message is as a result of a store and forward transaction.
Pål-Eirik Askerød 30.19 312 In Payment advice : Link to previous Authorization dialog
313 In reversal advice : Link to previous Authorization request or previous Payment request being reversed.
Kristian Lingsom 28.1 314
Kristian Lingsom 28.2 315
316 **P-62 PRODUCT SETS AND MESSAGE DATA**
317
318 This field contains allowed product sets and message data.
319
320 |=Number|=Name|=Format|=Attribute|=Description
321 |62| |n|3|LLLVAR length field. Sets the length of P-62 data
322 |62-1|Allowed products|ans|...99|LLVAR field, contains the products that are allowed
323 |62-2|Device text|n|1|For what device 62-3 is to be sent to
324 |62-3|Massage text|ans|...999|LLLVAR field. Display text
325
326 All subfields must be present when bit 62 is set. Field 62 shall not be sent if none of the three subfields need to be sent. If one of the subfields needs to be sent, all three subfields shall be sent.
327
Kristian Lingsom 28.3 328
329 **P-63 PRODUCT DATA**
330
331 This data element provides the detailed information on the products purchased or selected by the customer. The first two fields (63-1, 63-2) appear once per transaction. The next seven fields can be repeated up to 18 times.
332
Pål-Eirik Askerød 30.19 333 Each product is represented by seven fields: Product Code, Unit of Measure, Quantity, Unit Price, Amount, Tax code and Additional product code. The variable length fields and the succeeding entry are separated by a back-slash (\).
Kristian Lingsom 28.3 334 Unit price and amount may be negative or positive, but the sum of the amounts in the product data must equal the transaction amount.
335 The values of Quantity and Unit price may have a value that includes both integer and fractional values. The format of these fields consists of a single digit, which specifies the number of fractional digits following the integer, followed by the numeric value.
336 The value must be numeric. The number of fractional digits has a maximum of 4. The Amount field may have fractional digits. The number of fractional digits is specified by the currency code.
337
338 The list of sales items can contain a mixture of normal sales items and refund items. These are included in the online Host message as follows:
339
340
341 |=Number|=Format|=Field|=Description
342 |63|n 3|Product data|LLLVAR length field. Sets the length of P-63 data
343 |63-1|a 1|Service level|(((
344 S - Self-serve
345 F - Full serve
346 Space - Information not available
347 )))
348 |63-2|n 2|Number of products|Count of products (sale item) reported for this transaction.
349
350 Each Sales item consists of the following components:
351
352
353 |=Number|=Format|=Field|=Description
354 |63-3|n 3 |Product code|3-digit product code that defines the type of product sold
Pål-Eirik Askerød 30.13 355 |63-4|a 1 |Unit of measure|Indicates the meaning of the Quantity field. ‘U’ Sold per Unit
356 ‘O’ Unit of Measurement undefined ‘L’ Sold per Litre.
Kristian Lingsom 28.3 357 |63-5|n 9|Quantity|Number of product units
358 | | |Separator|‘\’ To separate Quantity from Unit-Price
359 |63-6|sn 9|Unit price|Starts with a Minus sign when Unit price is negative. First digit is exponent. Typically 3 for fuels, and 2 for shop articles. Remaining digits are actual unit price
360 | | |Separator|‘\’ To separate Unit price from Amount
361 |63-7|sn 12|Amount|Starts with a minus sign in case Item amount is negative. 2 decimals are always implied.
362 | | |Separator|‘\’ To separate the Amount from the Vat Code
363 |63-8|an 1|Tax code|1 digit VAT code
364 |63-9|n 14|Additional Product code|Up to 14 digits article number as known in the POS
Pål-Eirik Askerød 30.13 365 | | |Terminator |‘\’ To mark the end of this sales item
Kristian Lingsom 28.3 366
367 **P-64 MAC**
368
Pål-Eirik Askerød 30.14 369 See [[security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] for details.
Kristian Lingsom 28.3 370
371
Pål-Eirik Askerød 30.11 372 **P-127 Encrypted data**
373
Pål-Eirik Askerød 30.13 374 This field contains the encrypted track2 data. See [[security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] section for details on how to generate this field.
Pål-Eirik Askerød 30.14 375
Pål-Eirik Askerød 30.17 376
377 **P-128 MAC**
378
Pål-Eirik Askerød 30.19 379 **This field is used for MAC if P-127 is present**. See [[security documentation>>doc:.PayEx IFSF H2H Security specification.WebHome]] for details.
Pål-Eirik Askerød 30.18 380
Pål-Eirik Askerød 30.14 381