Python SDK

Official SDKs of Python for integrating BagelPay.

The BagelPay Python SDK is available as an pypi package for seamless integration with your Python projects.

The SDK is also available on GitHub for those who prefer to explore the source code directly.

The API document is here.

πŸ“¦ Installation Guide

System Requirements

  • Python: 3.11 or higher (recommended), minimum 3.8

  • Package Manager: pip or poetry

# Install latest stable version
pip install bagelpay

# Upgrade to latest version
pip install --upgrade bagelpay

Method 2: Using Poetry

# Add to your project
poetry add bagelpay

Method 3: Install from Source (Development)

Verify Installation

πŸš€ Quick Start

βš™οΈ Basic Configuration

Getting API Keys

  1. Sign up: Create account at BagelPay Dashboard

  2. Navigate: Go to "Developer Settings" β†’ "API Keys"

  3. Create Key: Generate new API key for your environment

  4. Copy: Save your test and live keys securely

  5. Environment: Start with test keys for development

Environment Variables Setup

Client Initialization Options

Environment-Specific Configuration

πŸ“š Beginner Tutorial

Step 1: Create Your First Product

Step 2: Create a Payment Session

Step 3: Monitor Transactions

Step 4: Manage Products

πŸ”§ API Reference

Product Management API

Creating Products

Product Operations

Payment Session API

Advanced Checkout Configuration

Subscription Management API

πŸš€ Webhook Integration

πŸ“ž Support and Resources

Getting Help

Last updated