Offline Processing
Latpay EMV Unified Gateway supports offline processing of EMV transactions for those use cases with merchants who are operating in environments with no reliable oubound Internet connectivity. The Latpay terminals can be configured to accept offline approvals. These offline approved transactions can be stored in merchant’s host storage in the terminal location and then be transmitted via the EMV offline batch processing API to Latpay for capture of transactions.
This is an “on-demand” feature which will require compliance approval. If you need more information on this feature please reach out to our operations team.
EMV Offline Batch Submission API
The batch submission API allows merchants to submit a batch of offline approved transactions in one request. If the request submission is successful, an acknowledgement will be returned which will contain a unique Latpay EMV Offline batch ID. Latpay will be processing capture of these batch submitted transactions as per the acquirer capture cutoff. Once the capture is processed, a notification can be triggered to merchant callback URL if provided in the original batch submission request. This notification will carry the status of transaction captured.
Batch authorisation#
Request#
| Fields | Type | Mandatory |
|---|---|---|
| batchreference# | string | Required |
| notifyurl# | string | Required |
| batchcount# | string | Required |
| transactions[]# | Transaction | Required |
{
"batchreference" :"batch123",
"notifyurl" : "https%3A%2F%2Fmerchantdomain.com%2Fnotify%2F",
"batchcount": "2",
"transactions":
[
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"merchantkey": "187e359db7f192362b96a2726245b360e3c7882c42994a54de39017da8661e86",
"consumer": {
"firstname": "thirlok",
"lastname": "shankar",
"phone": "1234512345",
"email": "thirlok@lpsmail.com"
},
"order": {
"reference": "AA406E0",
"currency": "AUD",
"amount": "5.00",
"purchasesummary": "Vending Charge"
},
"billing": {
"type": "emv_offline_approved",
"emv": {
"payload": "9A032207089F21031848269F390107DF8116161B00000000656E000000000000000000000000000000DF81290830F0F000B0F0FF00DFEE2601C3DFEE76050000008001DFEF4C06002700000000B8302D51C1110B21E0BC847CCEDF0808C2846BE6E95E0977FF81058201169F0206005626974204D6173746572636172645AA1085166CCCCCCCC27585AC110F288C77044F426B0C8F846B303BDB3D55F3401019F120B49434943492044454249549F3602016F9F0702FFC09F090200028407A0000000041010FFF20830303030303030309F1101019F2701809F34031F03029F10120110A04001240000000000000000000000FF9F33036008089F1A0208409F3501249505000000800157A9a032207089f21031848269f390107df8116161b00000000656e000000000000000000000000000000df81290830f0f000b0f0ff00dfee2601c3dfee76050000008001dfef4c06002700000000ccedf0808c2846be6e95e0977ff81058201169f02060000000001009f03060000000000009f260830664ef3c89405f88c77044f426b0c8f846b303bdb3d55f3401019f120b49434943492044454249549f3602016f9f0702ffc09f090200028407a0000000041010fff20830303030303030309f1101019f2701809f34031f03029f10120110a04001240000000000000000000000ff9f33036008089f1a0208409f3501249505000000800157a1135166cccccccc2758d2803226cccccccccccccc57c120f893d091af5ea6da2dca4b7eb7ccdd7a2dcf1aff0555a3ecc7d2ef29d041ee7d9f5301005f2a0208409a032207089c01009f3704f2288086ff81062edf8115009f42020356df810b0100df810e0100df810f01009f6e07035600003230005323233"
},
"fees": {
"processingfee": "0.00",
"surcharge": "0.00"
}
}
},
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"merchantkey": "187e359db7f192362b96a2726245b360e3c7882c42994a54de39017da8661e86",
"consumer": {
"firstname": "Satheesh",
"lastname": "Kumar",
"phone": "7654566778",
"email": "satheesh@lpsmail.com"
},
"order": {
"reference": "Kqf0-4rIRu",
"currency": "AUD",
"amount": "5.00",
"purchasesummary": "Vending Charge"
},
"billing": {
"type": "emv_offline_approved",
"emv": {
"payload": "9A032207089F21031848269F390107DF8116161B00000000656E000000000000000000000000000000DF81290830F0F000B0F0FF00DFEE2601C3DFEE76050000008001DFEF4C06002700000000B8302D51C1110B21E0BC847CCEDF0808C2846BE6E95E0977FF81058201169F0206005626974204D6173746572636172645AA1085166CCCCCCCC27585AC110F288C77044F426B0C8F846B303BDB3D55F3401019F120B49434943492044454249549F3602016F9F0702FFC09F090200028407A0000000041010FFF20830303030303030309F1101019F2701809F34031F03029F10120110A04001240000000000000000000000FF9F33036008089F1A0208409F3501249505000000800157A9a032207089f21031848269f390107df8116161b00000000656e000000000000000000000000000000df81290830f0f000b0f0ff00dfee2601c3dfee76050000008001dfef4c06002700000000ccedf0808c2846be6e95e0977ff81058201169f02060000000001009f03060000000000009f260830664ef3c89405f88c77044f426b0c8f846b303bdb3d55f3401019f120b49434943492044454249549f3602016f9f0702ffc09f090200028407a0000000041010fff20830303030303030309f1101019f2701809f34031f03029f10120110a04001240000000000000000000000ff9f33036008089f1a0208409f3501249505000000800157a1135166cccccccc2758d2803226cccccccccccccc57c120f893d091af5ea6da2dca4b7eb7ccdd7a2dcf1aff0555a3ecc7d2ef29d041ee7d9f5301005f2a0208409a032207089c01009f3704f2288086ff81062edf8115009f42020356df810b0100df810e0100df810f01009f6e07035600003230005323233"
},
"fees": {
"processingfee": "0.00",
"surcharge": "0.00"
}
}
}
]
}Acknowledgement#
Prescreen Failure
{
"batchid" : "123456",
"batchcount": "2",
"batchreference": "batch123",
"status":
{
"responsetype": "0",
"statuscode": "1",
"errorcode": "1001",
"errordesc": "Authentication failed"
}
}
Notification#
Response#
| Field | Type | Mandatory |
|---|---|---|
| batchid# | string | Required |
| batchcount# | string | Required |
| batchreference# | string | Required |
| transaction[]# | Transaction | Required |
{
"batchid" :"587567",
"batchreference" :"batch123",
"notifyurl" : "https%3A%2F%2Fmerchantdomain.com%2Fnotify%2F",
"batchcount": "2",
"status":
{
"responsetype": "4",
"statuscode": "0",
"errorcode": "00",
"errordesc": "Batch processing completed"
},
"transactions":
[
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"transactionid": "8070331",
"responsekey": "5CE09A4F1C2947860F102963D53912AE6960A8D9D3CF71F00DC80D91",
"customerid": "2",
"transactiondate_utc": "22/01/2025 06:19:10",
"consumer": {
"firstname": "thirlok",
"lastname": "shankar",
"phone": "1234567890",
"email": "thirlok@lpsmail.com"
},
"order": {
"orderid": null,
"reference": "Kqf0-4rIRu",
"currency": "AUD",
"amount": "5.00",
"purchasesummary": "Vending Charge"
},
"billing": {
"type": "emv_offline_approved",
"card": {
"name": null,
"pan": "4XXXXXXXXXXX2598",
"exp": "032029",
"token": "0x000000"
},
"Authresponse": {
"banktransactionno": "XXXXXXXX",
"authcode": "XXXXX",
"gatewayreference": "XXXXXXXX"
}
},
"status": {
"responsetype": "1",
"statuscode": "0",
"errorcode": "",
"errordesc": "",
"original_code": "00"
}
},
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"transactionid": "8070331",
"responsekey": "5CE09A4F1C2947860F102963D53912AE6960A8D9D3CF71F00DC80D91",
"customerid": "2",
"transactiondate_utc": "22/01/2025 06:19:10",
"consumer": {
"firstname": "Satheesh",
"lastname": "Kumar",
"phone": "1234567890",
"email": "thirlok@lpsmail.com"
},
"order": {
"orderid": null,
"reference": "AA406E0",
"currency": "AUD",
"amount": "5.00",
"purchasesummary": "Vending Charge"
},
"billing": {
"type": "emv",
"card": {
"name": null,
"pan": "4XXXXXXXXXXX2598",
"exp": "032029",
"token": "0x000000"
},
"Authresponse": {
"banktransactionno": "XXXXXXXX",
"authcode": "XXXXX",
"gatewayreference": "XXXXXXXX"
}
},
"status": {
"responsetype": "1",
"statuscode": "0",
"errorcode": "",
"errordesc": "",
"original_code": "00"
}
}
]
}