⭐ PREMIUM EDITION
🐍 Python 3.9+ Live Mode
📞 Support: +256-781-880-625
🐍

Official PawaPay Python SDK

Enterprise Mobile Money integration by Katorymnd Web Solutions
🔗 HOSTED PAGE PLAYGROUND
PawaPay Python SDK v2/v1 Auto-Router
>>> CHECKOUT_TERMINAL: Generates secure, short-lived checkout URLs. PawaPay handles the UI.

# Payment Page Generator

Don't want to build your own payment UI? Use the SDK to generate a Hosted Payment Page URL. Redirect your user there, and PawaPay handles the mobile money prompts securely.

generate_page.py - Pawapay Python SDK Playground
import asyncio
from pawapay_sdk import ApiClient

# 1. Initialize Client
config = {
    'api_token': , # Use Your Own Sandbox Account Token
    'environment': 'sandbox',
    'api_version':  # toggle v1/v2
}
client = ApiClient(config)

# 2. Build Checkout Parameters
params = {
    'depositId': 'auto_generated_uuid',
    'amount': , # update as you wish
    'currency': , # see `SDK Config` below
    'country': ,
    'phoneNumber': , # see `Open Docs` below
    'returnUrl': 'https://example.com/payment-success'# success page
}

# 3. Create Session
response = await client.create_payment_page_session(params)
print(f"Redirecting User to: {response.redirectUrl}")
TERMINAL // OUTPUT
$ Awaiting execution...
âš™ī¸ SDK Config 📘 Open Docs
🔀 Automatic Return URLs
Sandbox Gateway â€ĸ Live Deposit Page Ready