/klarna-python

A python SDK for accessing the klarna-python API.

Primary LanguagePythonMIT LicenseMIT

Python SDK

An effortless integration. Designed for growth.

SDK Installation

pip install klarna-orders

SDK Example Usage

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

  • cancel - Cancel an existing authorization
  • create - Create a new payment session
  • read - Read an existing payment session
  • update - Update an existing payment session

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