API
POSTRequest#
The payload of Checkout request must contain details of the authentication, customer, order details. For a seamless experience for customer, all purchase details can be included as well. The request & response parameters table below summarises the field requirements for Checkout along with mandatory field indicators . For the full list of parameters, including what is and is not mandatory, refer our API Reference section.
Checkout Request
Checkout URL Parameters
** Refer the “merchantkey” construction details in Authentication section(Part A) ***Refer the defaultvalue can be set as Y
Try it
· RequestThe payload is not valid JSON. Requests are relayed through this site to https://lateralpayments.com/checkout-staging. Use sandbox credentials only; nothing is stored.
Response#
The response to checkout API indicates the status of transaction along with unique transaction and order id’s.
Checkout Response#
Checkout URL Parameters
| API | Type | Mandatory |
|---|---|---|
| accountid# | string | Required |
| storeid# | string | Required |
| deviceid# | string | Required |
| transactionid# | numeric | Required |
| customerid# | numeric | Required |
| responsekey**# | string | Required |
| transactiondate_utc# | String | Required |
| status# | Status | Required |
| consumer# | Consumer | Required |
| order# | Order | Required |
| callback_params# | CallbackParams | Optional |
| billing# | Billing | Required |
| emvtags# | array(contents can vary) | Optional |
| response_emvtags# | array(contents can vary) | Optional |
| scsscheck# | string | Optional |
| isfullresponse# | string | Optional |
** Refer the “responsekey” details in Authentication section(Part A)
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"transactionid": "1012177",
"responsekey": "8870B6763FAEC9FD7C85BB6C42432BEB2DC3182ADEC9E02644BBB8F37970D68F",
"customerid": "106",
"transactiondate_utc": "14/07/2022 11:16:00",
"consumer": {
"firstname": "thirlok",
"lastname": "shankar",
"phone": "1234512345",
"email": "thirlok@lpsmail.com"
},
"order": {
"orderid": "1012166",
"reference": "lpstest123",
"currency": "AUD",
"amount": "51.00",
"purchasesummary": "Ecomm purchase list"
},
"billing": {
"type": "emv",
"card": {
"name": "NA NA",
"pan": "47614099XXXX0270",
"exp": "032028",
"token": "0xe09f15ca5897a95bb5559d3e"
},
"authresponse": {
"banktransactionno": "*****",
"authcode": "*****",
"gatewayreference": "*****"
},
"fees": {
"processingfee": "0.01",
"surcharge": "1.00"
}
},
"status": {
"responsetype": "1",
"statuscode": "0",
"errorcode": "",
"errordesc": "",
"original_code": "00"
},
"emvtags": [
{
"name": "9A",
"length": "03",
"value": "220708"
},
{
"name": "9F21",
"length": "03",
"value": "184826"
},
{
"name": "9F39",
"length": "01",
"value": "07"
},
{
"name": "DF8116",
"length": "16",
"value": "1B00000000656E000000000000000000000000000000"
},
{
"name": "DF8129",
"length": "08",
"value": "30F0F000B0F0FF00"
},
{
"name": "DFEE26",
"length": "01",
"value": "C3"
},
{
"name": "DFEE76",
"length": "05",
"value": "0000008001"
},
{
"name": "9F02",
"length": "06",
"value": "000000000100"
},
{
"name": "9F03",
"length": "06",
"value": "000000000000"
},
{
"name": "9F26",
"length": "08",
"value": "30664EF3C89405F8"
},
{
"name": "5F24",
"length": "03",
"value": "280331"
},
{
"name": "82",
"length": "02",
"value": "1980"
},
{
"name": "5A",
"length": "08",
"value": "5166CCCCCCCC2758"
},
{
"name": "9F07",
"length": "02",
"value": "FFC0"
},
{
"name": "9F09",
"length": "02",
"value": "0002"
},
{
"name": "84",
"length": "07",
"value": "A0000000041010"
},
{
"name": "FFF2",
"length": "08",
"value": "3030303030303030"
},
{
"name": "9F11",
"length": "01",
"value": "01"
},
{
"name": "9F27",
"length": "01",
"value": "80"
},
{
"name": "9F35",
"length": "01",
"value": "24"
},
{
"name": "95",
"length": "05",
"value": "0000008001"
},
{
"name": "9F53",
"length": "01",
"value": "00"
},
{
"name": "5F2A",
"length": "02",
"value": "0840"
},
{
"name": "9A",
"length": "03",
"value": "220708"
},
{
"name": "9C",
"length": "01",
"value": "00"
},
{
"name": "9F37",
"length": "04",
"value": "F2288086"
},
{
"name": "DF8115",
"length": "06",
"value": "0000000000FF"
},
{
"name": "9F5D",
"length": "03",
"value": "010000"
},
{
"name": "9F42",
"length": "02",
"value": "0356"
},
{
"name": "DF810B",
"length": "01",
"value": "00"
}
],
"response_emvtags" : [
{
"name": "91",
"length": "0A",
"value": "6F6D8C8EE88336250012"
}
]
}