Multisafepay API wrapper
Project description
MultiSafepay Python SDK
Easily integrate MultiSafepay's payment solutions into your Python applications with this official API client. This SDK provides convenient access to the MultiSafepay REST API, supports all core payment features, and is designed for seamless integration into any Python-based backend.
About MultiSafepay
MultiSafepay is a Dutch payment services provider, which takes care of contracts, processing transactions, and collecting payment for a range of local and international payment methods. Start selling online today and manage all your transactions in one place!
Installation
If you want to use the built-in default transport, install with the requests extra.
pip install "multisafepay[requests]"
If you want to provide your own transport implementation, install the base package.
pip install multisafepay
HTTP client / transport (optional dependency)
WARNING: This SDK does not have a hard dependency on a specific HTTP client.
The SDK uses a small transport abstraction so you can choose (and swap) the underlying HTTP implementation without affecting the rest of your integration.
How it works
- The SDK expects an object implementing the
HTTPTransport/HTTPResponseprotocols defined insrc/multisafepay/transport/http_transport.py. - If you do not provide a transport, the SDK defaults to
RequestsTransport. requestsis an optional extra:- To use the default transport, install
multisafepay[requests]. - To avoid
requests, inject your own transport (for example,httpxorurllib3).
- To use the default transport, install
Custom transport example
pip install multisafepay
from multisafepay import Sdk
sdk = Sdk(
api_key="<api_key>",
is_production=False,
transport=my_custom_transport, # must implement HTTPTransport
)
See transport examples in examples/transport/ (httpx_transport.py, urllib3_transport.py, request_transport.py).
Getting started
Initialize the client
from multisafepay import Sdk
multisafepay_sdk: Sdk = Sdk(api_key='<api_key>', is_production=True)
Examples
Go to the folder examples to see how to use the SDK.
Code quality checks
Linting
make lint
Testing
make test
Support
Create an issue on this repository or email integration@multisafepay.com
Contributors
If you create a pull request to suggest an improvement, we'll send you some MultiSafepay swag as a thank you!
License
Open Software License (OSL 3.0)
Want to be part of the team?
Are you a developer interested in working at MultiSafepay? Check out our job openings and feel free to get in touch!
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 multisafepay-3.0.0.tar.gz.
File metadata
- Download URL: multisafepay-3.0.0.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb57374865c2118328e620cc4f41cb3d670ea15da333f4db2a12d6d9a6ea178b
|
|
| MD5 |
7219282e51aee1f8c064528cf5c77106
|
|
| BLAKE2b-256 |
730014b982bc702ef829974079b177a2c8d3ad2d81fd67c8242932f76de9ef53
|
Provenance
The following attestation bundles were made for multisafepay-3.0.0.tar.gz:
Publisher:
release.yml on MultiSafepay/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multisafepay-3.0.0.tar.gz -
Subject digest:
eb57374865c2118328e620cc4f41cb3d670ea15da333f4db2a12d6d9a6ea178b - Sigstore transparency entry: 1042951631
- Sigstore integration time:
-
Permalink:
MultiSafepay/python-sdk@4b5f4270b21793581c145813877aba9f087e4e70 -
Branch / Tag:
refs/tags/3.0.0 - Owner: https://github.com/MultiSafepay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b5f4270b21793581c145813877aba9f087e4e70 -
Trigger Event:
push
-
Statement type:
File details
Details for the file multisafepay-3.0.0-py3-none-any.whl.
File metadata
- Download URL: multisafepay-3.0.0-py3-none-any.whl
- Upload date:
- Size: 140.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68bd8c8eb1fa336e6069a4abdeae2f9f138ce9bd00390eb0ddb9dcdda49c195e
|
|
| MD5 |
98d67b9ef39fe5351d04eabe260eb2c8
|
|
| BLAKE2b-256 |
f77a0cd67a9f76089498508a3f6a672030954a257e9fe62d60aace8f59fecbc0
|
Provenance
The following attestation bundles were made for multisafepay-3.0.0-py3-none-any.whl:
Publisher:
release.yml on MultiSafepay/python-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
multisafepay-3.0.0-py3-none-any.whl -
Subject digest:
68bd8c8eb1fa336e6069a4abdeae2f9f138ce9bd00390eb0ddb9dcdda49c195e - Sigstore transparency entry: 1042951633
- Sigstore integration time:
-
Permalink:
MultiSafepay/python-sdk@4b5f4270b21793581c145813877aba9f087e4e70 -
Branch / Tag:
refs/tags/3.0.0 - Owner: https://github.com/MultiSafepay
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4b5f4270b21793581c145813877aba9f087e4e70 -
Trigger Event:
push
-
Statement type: