Skip to main content

An unofficial Python library for communicating with the Tikkie API

Project description

Python Tikkie API

An unofficial Python library for communicating with the Tikkie API

Installing

pip install tikkie

Example

from decimal import Decimal

from tikkie import configure, get_platforms, get_users, create_payment_request

private_key = open('private_rsa.pem', 'rb').read().decode()
configure(api_key='secret', private_key=private_key, platform_token='my-platform-token', sandbox=False)

platform = get_platforms()[0]
user = get_users()[0]

rq = create_payment_request(
    user_token=user.user_token,
    bank_account_token=user.bank_accounts[0].bank_account_token,
    amount=Decimal(0.01),
    currency="EUR",
    description="Test cesar",
    external_id="123456",
    platform_token=platform.platform_token,
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tikkie-0.0.4.tar.gz (7.7 kB view hashes)

Uploaded Source

Built Distribution

tikkie-0.0.4-py3-none-any.whl (9.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page