Integration
The Integration API allows you manage some settings on your integration.
Fetch Timeout
Fetch the payment session timeout on your integration
authorization String | Set value to Bearer SECRET_KEY |
GET/integration/payment_session_timeout
cURL
1curl https://api.paystack.co/integration/payment_session_timeout2-H "Authorization: Bearer YOUR_SECRET_KEY"3-X GET
Sample Response
200 Ok
1{2 "status": true,3 "message": "Payment session timeout retrieved",4 "data": {5 "payment_session_timeout": 306 }7}
Update Timeout
Update the payment session timeout on your integration
authorization String | Set value to Bearer SECRET_KEY |
content-type String | Set value to application/json |
timeout Integer | Time before stopping session (in seconds). Set to 0 to cancel session timeouts |
PUT/integration/payment_session_timeout
cURL
1curl https://api.paystack.co/integration/payment_session_timeout2-H "Authorization: Bearer YOUR_SECRET_KEY"3-H "Content-Type: application/json"4-d '{ "timeout": 30 }'5-X PUT
Sample Response
200 Ok
1{2 "status": true,3 "message": "Payment session timeout updated",4 "data": {5 "payment_session_timeout": 306 }7}