api
docsapistatus
  • Introduction
  • Authentication
  • Errors
  • API Endpoints
    • Transactions
    • Payment Pages
    • Refunds
    • Payment Session Timeout
Powered by GitBook
On this page
  • Fetch Timeout
  • Update Timeout
  1. API Endpoints

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

Name
Type
Description

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

Name
Type
Description

authorization*

String

Set value to Bearer SECRET_KEY

content-type*

String

Set value to application/json

Request Body

Name
Type
Description

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
  }
}
PreviousRefunds

Last updated 1 year ago