Skip to main content

Multisafepay API wrapper

Project description

MultiSafepay Python SDK

Code Quality Codecov License Latest stable version Python versions

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 / HTTPResponse protocols defined in src/multisafepay/transport/http_transport.py.
  • If you do not provide a transport, the SDK defaults to RequestsTransport.
  • requests is an optional extra:
    • To use the default transport, install multisafepay[requests].
    • To avoid requests, inject your own transport (for example, httpx or urllib3).

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


Download files

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

Source Distribution

multisafepay-3.0.0.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

multisafepay-3.0.0-py3-none-any.whl (140.5 kB view details)

Uploaded Python 3

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

Hashes for multisafepay-3.0.0.tar.gz
Algorithm Hash digest
SHA256 eb57374865c2118328e620cc4f41cb3d670ea15da333f4db2a12d6d9a6ea178b
MD5 7219282e51aee1f8c064528cf5c77106
BLAKE2b-256 730014b982bc702ef829974079b177a2c8d3ad2d81fd67c8242932f76de9ef53

See more details on using hashes here.

Provenance

The following attestation bundles were made for multisafepay-3.0.0.tar.gz:

Publisher: release.yml on MultiSafepay/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for multisafepay-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 68bd8c8eb1fa336e6069a4abdeae2f9f138ce9bd00390eb0ddb9dcdda49c195e
MD5 98d67b9ef39fe5351d04eabe260eb2c8
BLAKE2b-256 f77a0cd67a9f76089498508a3f6a672030954a257e9fe62d60aace8f59fecbc0

See more details on using hashes here.

Provenance

The following attestation bundles were made for multisafepay-3.0.0-py3-none-any.whl:

Publisher: release.yml on MultiSafepay/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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