Capture
After making a successful preauth, a capture request will be required to capture the preauth. Note that the capture request must refer to the preauth reference, but the final amount can be different to the preauth amount.
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
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. In case of asynchronous payments where customer will be completing payments, the status will usually acknowledge as pending and final status notified on callback to URL sent on the notifyurl parameter.
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 |
** Refer the “responsekey” details in Authentication section
{
"accountid": "Provided by Latpay",
"storeid": "Provided by Latpay",
"deviceid": "Provided by Latpay",
"transactionid": "2896657",
"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_capture",
"preauthref":"1012177",
"card": {
"name": "NA NA",
"pan": "",
"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"
}
}