Bank Payments (AU only)
The Checkout API is part of a unified API request to process authorisations. To use direct debit / direct credit as payment mode, indicate the “billing” section with type set to “dd” or “dc” as shown the sample request.
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. For the full list of parameters, including what is and is not mandatory, refer our API Reference section.
Direct Entry Request
Direct Debit/Credit URL Parameters
** Refer the “authkey” construction details in Authentication section
Try it
· RequestRequests 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.
Direct Entry Response
Direct Debit/Credit URL Parameters
{
"accountid": "test_pos",
"transactionid": "2056442",
"responsekey": "8C8FD7DC5965CF84BB3DFC272DAEEB627D23CD3BD2CA5B192DF739E57E0B76E21DDC3C3FB80940A7B435126483C1E7318DA7B17A301F08191B9895CC02F04580",
"customerid": "2",
"transactiondate_utc": "21/02/2023 10:15:00",
"consumer": {
"firstname": "thirlok",
"lastname": "shankar",
"phone": "1234567890",
"email": "thirlok@lpsmail.com"
},
"order": {
"orderid": "2056427",
"reference": "lpstest123",
"currency": "AUD",
"amount": "0.12",
"purchasesummary": "Ecomm purchase list",
"purchasedetail": [
{
"productid": "1890",
"productname": "Smart watch",
"productsku": "shop_dept_item_12434",
"productdescription": "Android Smart wear design # tyfg45667",
"productcategory": "Electronics",
"productURL": "http://lateralpaymentsolutions.com",
"quantity": "2",
"priceperunit": "0.5"
},
{
"productid": "1891",
"productname": "Smart card",
"productsku": "shop_dept_item_7895",
"productdescription": "Kingston Smart SD Card # sd43545",
"productcategory": "Electronics",
"productURL": "http://lateralpaymentsolutions.com",
"quantity": "1",
"priceperunit": "0.2"
}
]
},
"callback_params": {
"param1": "value1",
"param2": "value2",
"param3": "value3",
"param4": "value4",
"param5": "value5"
},
"billing": {
"type": "dd",
"directentry": {
"bsb": "123456",
"accountnumber": "8766565465",
"accountname": "My account"
},
"fees": {
"processingfee": "0.25"
},
"authresponse": {
"banktransactionno": "",
"authcode": "",
"gatewayreference": "2585"
}
},
"status": {
"responsetype": "2",
"statuscode": "2",
"errorcode": "",
"errordesc": ""
},
"notifyurl": "https://www.notifyurl.aspx"
}
Process Notification#
{
"accountid":"test_lpsv2",
"transactionid":"39678",
"responsekey":"a746ff9621d67a6d1b8d7bb6174fea00",
"customerid":"123",
"transactiondate_utc":"07/04/2020 00:40:00",
"consumer":
{
"firstname":"thirlok",
"lastname":"shankar",
"phone":"1234567890",
"email":"thirlok@lpsmail.com"
},
"order":
{
"orderid":"345",
"reference":"lpstest123",
"currency":"AUD",
"amount":"0.01",
"purchasesummary":"Ecomm purchase list"
},
"billing":
{
"type":"dd",
"directentry":
{
"bsb":"650000",
"accountnumber":"111111",
"accountname":"My account"
},
"authresponse":
{
"banktransactionno":"",
"authcode":"",
"gatewayreference":"123"
}
},
"status":
{
"responsetype":"4",
"statuscode":"0",
"errorcode":"",
"errordesc":""
}
}