Dintero Python SDK
With the Dintero Python SDK you can easily interact with the Dintero API to create and manage payments through the Checkout API, and in the future also use the many other APIs we've got.
Installation
Install from pip by using:
pip install --upgrade dintero
Requirements
- Python 3.9+
Using the SDK
Create an account through https://onboarding.dintero.com.
Get client credentials from the Dintero Backoffice, see guide.
Create a payment profile by going to Dintero Backoffice --> Settings --> Payment Profiles
Use your newly created credentials to create a session:
from dintero import Dintero
account_id = 'T12345678'
client_id = '72e023b1-aeda-498e-b141-4669528c44b9'
client_secret = '125f9f0a-e240-4bfd-be57-0086343bf0e4'
profile_id = 'T12345678.46dP6T4F1mUXYPeYKYc5Gj'
dintero = Dintero(
account_id,
client_id,
client_secret)
checkout = dintero.checkout()
session_info = checkout.create_session({
"url": {
"return_url": "https://example.com/accept",
"callback_url": "https://example.com/callback"
},
"order": {
"amount": 29990,
"currency": "NOK",
"merchant_reference": "string",
"items": [
{
"id": "chair-1",
"line_id": "1",
"description": "Stablestol",
"quantity": 1,
"amount": 29990,
"vat_amount": 6000,
"vat": 25
}
]
},
"profile_id": profile_id
})
print(session_info)
Metadata
Release files for dintero 0.0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| dintero-0.0.9.tar.gz | 8.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dintero-0.0.9-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 15.4 kB
Release files / dintero-0.0.9.tar.gz
| Download URL | dintero-0.0.9.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f2dff9a1ecaec08036e04b304fa1393e85e47b714f66731a0d200c11b36757d2
|
|
BLAKE2b-256 checksum How to use checksums |
14c4fb81e5b97881940e02108176bc952354aae7d7c9dfe4ecdc75cbacd7ad13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / dintero-0.0.9-py2.py3-none-any.whl
| Download URL | dintero-0.0.9-py2.py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
70c08843525703ff75815fdfcd4f9694bf3ef83a7e56b8bad68e3cde556eab13
|
|
BLAKE2b-256 checksum How to use checksums |
cf9a35e4d8e60a73a934428580bd78adabb0936e054f91e22b70ebb0b9a0f3fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for dintero 0.0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.