Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speakeasy-sdks/klarna-python
A python SDK for accessing the klarna-python API.
https://github.com/speakeasy-sdks/klarna-python
billing klarna payments python sdk
Last synced: 1 day ago
JSON representation
A python SDK for accessing the klarna-python API.
- Host: GitHub
- URL: https://github.com/speakeasy-sdks/klarna-python
- Owner: speakeasy-sdks
- License: mit
- Created: 2023-04-06T10:03:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-02T21:19:50.000Z (7 months ago)
- Last Synced: 2024-11-02T06:22:21.059Z (5 days ago)
- Topics: billing, klarna, payments, python, sdk
- Language: Python
- Homepage: https://docs.klarna.com/api/ordermanagement/
- Size: 131 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## SDK Installation
```bash
pip install klarna-orders
```## SDK Example Usage
```python
import klarna
from klarna.models import operationss = klarna.Klarna(
security=shared.Security(
api_key_auth="Bearer YOUR_BEARER_TOKEN_HERE",
),
)req = operations.CancelAuthorizationRequest(
authorization_token='corrupti',
)res = s.authorizations.cancel(req)
if res.status_code == 200:
# handle response
```## Available Resources and Operations
### [authorizations](docs/authorizations/README.md)
* [cancel](docs/authorizations/README.md#cancel) - Cancel an existing authorization
### [orders](docs/orders/README.md)
* [create](docs/orders/README.md#create) - Create a new order
### [sessions](docs/sessions/README.md)
* [create](docs/sessions/README.md#create) - Create a new payment session
* [read](docs/sessions/README.md#read) - Read an existing payment session
* [update](docs/sessions/README.md#update) - Update an existing payment session### [tokens](docs/tokens/README.md)
* [purchase](docs/tokens/README.md#purchase) - Generate a consumer token
### Maturity
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning usage
to a specific package version. This way, you can install the same version each time without breaking changes unless you are intentionally
looking for the latest version.### Contributions
While we value open-source contributions to this SDK, this library is generated programmatically.
Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks)