Payment Session Timeout

The API allows you manage the session timeout of the transaction

Fetch Timeout

GET https://api.lahza.io/payment_session_timeout

Fetch the payment session timeout

Headers

NameTypeDescription

authorization*

String

Set value to Bearer SECRET_KEY

{
  "status": true,
  "message": "Payment session timeout retrieved",
  "data": {
    "payment_session_timeout": 30
  }
}

Update Timeout

PUT https://api.lahza.io/payment_session_timeout

Update the payment session timeout

Headers

NameTypeDescription

authorization*

String

Set value to Bearer SECRET_KEY

content-type*

String

Set value to application/json

Request Body

NameTypeDescription

timeout*

Integer

Time before stopping session (in seconds). Set to 0 to cancel session timeouts

{
  "status": true,
  "message": "Payment session timeout updated",
  "data": {
    "payment_session_timeout": 30
  }
}

Last updated