Integration
IntegrationClient
Bases: BaseAPIClient
Provides a wrapper for paystack Integration API
The Integration API allows you to manage some settings on your integration. https://paystack.com/docs/api/integration/
Source code in src/pypaystack2/sub_clients/sync_clients/integration.py
get_payment_session_timeout(alternate_model_class=None)
Fetch the payment session timeout on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[IntegrationTimeout] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/integration.py
update_payment_session_timeout(timeout, alternate_model_class=None)
Update the payment session timeout on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout
|
int
|
Time before stopping session (in seconds). Set to 0 to cancel session timeouts |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[IntegrationTimeout] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/sync_clients/integration.py
AsyncIntegrationClient
Bases: BaseAsyncAPIClient
Provides a wrapper for paystack Integration API
The Integration API allows you to manage some settings on your integration. https://paystack.com/docs/api/integration/
Source code in src/pypaystack2/sub_clients/async_clients/integration.py
get_payment_session_timeout(alternate_model_class=None)
async
Fetch the payment session timeout on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[IntegrationTimeout] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |
Source code in src/pypaystack2/sub_clients/async_clients/integration.py
update_payment_session_timeout(timeout, alternate_model_class=None)
async
Update the payment session timeout on your integration
Parameters:
Name | Type | Description | Default |
---|---|---|---|
timeout
|
int
|
Time before stopping session (in seconds). Set to 0 to cancel session timeouts |
required |
alternate_model_class
|
type[PaystackDataModel] | None
|
A pydantic model class to use instead of the
default pydantic model used by the library to present the data in
the |
None
|
Returns:
Type | Description |
---|---|
Response[IntegrationTimeout] | Response[PaystackDataModel]
|
A pydantic model containing the response gotten from paystack's server. |