Skip to main content

BlockBee's Python Library

Python implementation of BlockBee's payment gateway

Deprecated! It has been integrated into python-blockbee.

Requirements:

Python >= 3.0
Requests >= 2.20

Install

pip install python-blockbee-checkout

on pypi or on GitHub

Usage

Importing in your project file

from BlockBee import BlockBeeCheckoutHelper

Generate a Payment Checkout page

from BlockBee import BlockBeeCheckoutHelper

bb = BlockBeeCheckoutHelper(api_key, params, bb_params)

payment_page = bb.payment_request(redirect_url, value)

Where:

  • api_key is the API Key provided by our Dashboard.
  • params is any parameter you wish to send to identify the payment, such as {'order_id': 1234}.
  • bb_params parameters that will be passed to BlockBee _(check which extra parameters are available here: https://docs.blockbee.io/#operation/create).
  • redirect_url URL in your platform, where the user will be redirected to following the payment. Should be able to process the payment using the success_token.
  • value amount in currency set in Payment Settings you want to receive from the user.

Getting notified when the user completes the Payment

When receiving payments, you have the option to receive them in either the notify_url or the redirect_url, but adding the redirect_url is required (refer to our documentation at https://docs.blockbee.io/#operation/paymentipn).

Requesting Deposit

from BlockBee import BlockBeeCheckoutHelper

bb = BlockBeeCheckoutHelper(api_key, params, bb_params)

deposit_page = bb.deposit_request(notify_url)

Getting notified when the user makes a deposit

When receiving deposits, you must provide a notify_url where our system will send an IPN every time a user makes a deposit (refer to our documentation at https://docs.blockbee.io/#operation/depositipn).

Help

Need help?
Contact us @ https://blockbee.io/contacts/

Changelog

1.0.0

  • Initial Release

1.0.1

  • Minor bugfixes

1.0.2

  • Minor bugfixes

Metadata

Release files for python-blockbee-checkout 1.0.3

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

Source distribution (sdist)

Source distribution for python-blockbee-checkout 1.0.3
File Size Uploaded Provenance Actions
python-blockbee-checkout-1.0.3.tar.gz 4.0 kB Without provenance Details for python-blockbee-checkout-1.0.3.tar.gz

Release files / python-blockbee-checkout-1.0.3.tar.gz

Download URL python-blockbee-checkout-1.0.3.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3d9393aad4d105cc88d37abad59256191952a9b1b4eaf4974bc7aea45cca3f46
BLAKE2b-256 checksum
How to use checksums
d6ada950608977ee874bb569cb9ac252cd2b7c42ab198a09cd4006740681aa32
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for python-blockbee-checkout 1.0.3

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.

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