Skip to main content

Python SDK for maib ecommerce API

Installation

To easily install or upgrade to the latest release, use pip:

pip install --upgrade maib-ecommerce-sdk

Getting started

Import SDK:

from maib_ecommerce_sdk import MaibAuthRequest, MaibApiRequest

Add project configuration:

import os

MAIB_PROJECT_ID = os.getenv('MAIB_PROJECT_ID')
MAIB_PROJECT_SECRET = os.getenv('MAIB_PROJECT_SECRET')
MAIB_SIGNATURE_KEY = os.getenv('MAIB_SIGNATURE_KEY')

SDK usage examples

Get Access Token with Project ID and Project Secret

maib_auth = MaibAuthRequest.create().generate_token(MAIB_PROJECT_ID, MAIB_PROJECT_SECRET)

maib_token = maib_auth['accessToken']
maib_refresh_token = maib_auth['refreshToken']

Get Access Token with Refresh Token

maib_auth = MaibAuthRequest.create().generate_token(maib_refresh_token)

maib_token = maib_auth['accessToken']
maib_refresh_token = maib_auth['refreshToken']

Direct Payment

# Set up required payment parameters
maib_pay_data = {
    'amount': 10.25,
    'currency': 'EUR',
    'clientIp': '127.0.0.1'
}

# Initiate Direct Payment
maib_pay = MaibApiRequest.create().pay(maib_pay_data, maib_token)

maib_pay_url = maib_pay['payUrl']
maib_pay_id = maib_pay['payId']

For more examples see PHP SDK for maib ecommerce API

Metadata

Release files for maib-ecommerce-sdk 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maib-ecommerce-sdk 1.1.4
File Size Uploaded
maib_ecommerce_sdk-1.1.4.tar.gz 20.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for maib-ecommerce-sdk 1.1.4
File Interpreter ABI Platform
maib_ecommerce_sdk-1.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / maib_ecommerce_sdk-1.1.4.tar.gz

Download URL maib_ecommerce_sdk-1.1.4.tar.gz
Size 20.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9ca4b6b435a520cd27da512157194f5410e303f009d6f585fe3b1ed2071e767b
BLAKE2b-256 checksum
How to use checksums
4a2b57b4b6f0523e8afcfcf072104aa1e819a9d9631e309857136f741b9ff699
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2025.

Transparency log

Release files / maib_ecommerce_sdk-1.1.4-py3-none-any.whl

Download URL maib_ecommerce_sdk-1.1.4-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f2ab9baf3322f0569505a59393ca8b7a9de3874139c401d1d7b32561a8688b6
BLAKE2b-256 checksum
How to use checksums
3d4fae51c42a440de4ff7997c24fad7533ba0b4273e8e8ee3b16787bf1168e32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 30, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.4 This release

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page