Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        



Python SDK


An effortless integration. Designed for growth.






## SDK Installation

```bash
pip install klarna-orders
```

## SDK Example Usage

```python
import klarna
from klarna.models import operations

s = 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)