Python bindings for the Buckaroo API
Project description
Buckaroo Python SDK
Index
About
Buckaroo is the Payment Service Provider for all your online payments with more than 30,000 companies relying on Buckaroo's platform to securely process their payments, subscriptions and unpaid invoices. Buckaroo developed their own Python SDK. The SDK is a modern, open-source Python library that makes it easy to integrate your Python application with Buckaroo's services. Start accepting payments today with Buckaroo.
Requirements
To use the Buckaroo API client, the following things are required:
Pip Installation
By far the easiest way to install the Buckaroo SDK is via pip.
$ pip install buckaroo-sdk
Then import the client in your project:
from buckaroo import BuckarooClient
Example
Create and configure the Buckaroo client. You can find your credentials in Buckaroo Plaza.
from buckaroo import BuckarooClient
from buckaroo.services.payment_service import PaymentService
# Get your store & secret key in your plaza.
# mode="test" routes calls to the test environment; use "live" for production.
client = BuckarooClient("STORE_KEY", "SECRET_KEY", mode="test")
payments = PaymentService(client)
Create a payment with any of the available payment methods. In this example, we show how to create a credit card payment. Each payment has a slightly different payload.
# Create a new payment
response = (
payments.create_payment("creditcard", {
"currency": "EUR",
"amount": 10.00, # The amount we want to charge
"invoice": "UNIQUE-INVOICE-NO", # Each payment must contain a unique invoice number
"service_parameters": {"brand": "visa"}, # Request to pay with Visa
})
.description("Order #UNIQUE-INVOICE-NO")
.pay()
)
# Inspect the response from Buckaroo
if response.is_successful():
print("transaction id:", response.get_transaction_id())
print("redirect:", response.get_redirect_url())
else:
print("status message:", response.get_message())
You can also use the fluent interface directly:
response = (
payments.create_payment("creditcard")
.currency("EUR")
.amount(10.00)
.invoice("UNIQUE-INVOICE-NO")
.pay()
)
Find our full documentation online on docs.buckaroo.io.
Contribute
We really appreciate it when developers contribute to improve the Buckaroo plugins. If you want to contribute as well, then please follow our Contribution Guidelines.
Versioning
- MAJOR: Breaking changes that require additional testing/caution
- MINOR: Changes that should not have a big impact
- PATCHES: Bug and hotfixes only
Additional information
- Support: https://docs.buckaroo.io/docs/contact-us
- Contact: support@buckaroo.nl or +31 (0)30 711 50 50
License
Buckaroo Python SDK is open-sourced software licensed under the MIT license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file buckaroo_sdk-0.1.0.tar.gz.
File metadata
- Download URL: buckaroo_sdk-0.1.0.tar.gz
- Upload date:
- Size: 54.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0a8317fc8efcd2ef3d9bd455a784ef6fb85c055f444934bf23bda0f06217ea5
|
|
| MD5 |
52b8141bbbd0b51bf74bf42fd33e5652
|
|
| BLAKE2b-256 |
a83d1fc25713e0dd43309756643a9af7d4b473b990fd78099bdb3f13323aacaf
|
Provenance
The following attestation bundles were made for buckaroo_sdk-0.1.0.tar.gz:
Publisher:
publish.yml on buckaroo-it/BuckarooSDK_Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buckaroo_sdk-0.1.0.tar.gz -
Subject digest:
a0a8317fc8efcd2ef3d9bd455a784ef6fb85c055f444934bf23bda0f06217ea5 - Sigstore transparency entry: 1518718127
- Sigstore integration time:
-
Permalink:
buckaroo-it/BuckarooSDK_Python@e606c4a8fcadb686ec99afb0898c92641696c775 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/buckaroo-it
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e606c4a8fcadb686ec99afb0898c92641696c775 -
Trigger Event:
push
-
Statement type:
File details
Details for the file buckaroo_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: buckaroo_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 85.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d704f2c9659f14c39ce8eace7e791922ad116e9cefba8a687b09b62322f9e3fd
|
|
| MD5 |
620e0ff21e61b583f94390c2a555b61f
|
|
| BLAKE2b-256 |
35d7294abe2aba02181c66d868f926e8acb557cb7a7555a893dce0cce0612b5c
|
Provenance
The following attestation bundles were made for buckaroo_sdk-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on buckaroo-it/BuckarooSDK_Python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
buckaroo_sdk-0.1.0-py3-none-any.whl -
Subject digest:
d704f2c9659f14c39ce8eace7e791922ad116e9cefba8a687b09b62322f9e3fd - Sigstore transparency entry: 1518718162
- Sigstore integration time:
-
Permalink:
buckaroo-it/BuckarooSDK_Python@e606c4a8fcadb686ec99afb0898c92641696c775 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/buckaroo-it
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e606c4a8fcadb686ec99afb0898c92641696c775 -
Trigger Event:
push
-
Statement type: