Integration

The Integration API allows you manage some settings on your integration.

Fetch Timeout

Fetch the payment session timeout on your integration

Headers
authorization
String
Set value to Bearer SECRET_KEY
GET/integration/payment_session_timeout
cURL
1#!/bin/sh
2url="https://api.paystack.co/integration/payment_session_timeout"
3authorization="Authorization: Bearer YOUR_SECRET_KEY"
4
5curl "$url" -H "$authorization" -X GET
Sample Response
200 Ok
1{
2 "status": true,
3 "message": "Payment session timeout retrieved",
4 "data": {
5 "payment_session_timeout": 30
6 }
7}

Update Timeout

Update the payment session timeout on your integration

Headers
authorization
String
Set value to Bearer SECRET_KEY
content-type
String
Set value to application/json
Body Parameters
timeout
Integer
Time before stopping session (in seconds). Set to 0 to cancel session timeouts
PUT/integration/payment_session_timeout
cURL
1#!/bin/sh
2url="https://api.paystack.co/integration/payment_session_timeout"
3authorization="Authorization: Bearer YOUR_SECRET_KEY"
4content_type="Content-Type: application/json"
5data='{ "timeout": 30 }'
6
7curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT
Sample Response
200 Ok
1{
2 "status": true,
3 "message": "Payment session timeout updated",
4 "data": {
5 "payment_session_timeout": 30
6 }
7}