Python SDK
The official Python SDK for PaymentKit.
Installation
Quick Start
Environments
Async Client
The SDK provides an async client for non-blocking API calls:
Error Handling
Configuration
Timeouts
Default timeout is 60 seconds. Override at client or request level:
Retries
The SDK automatically retries requests with exponential backoff for:
- 408 (Request Timeout)
- 409 (Conflict)
- 429 (Too Many Requests)
- 5XX (Server Errors)