payman-zibal is a plugin for Payman that enables integration with the Zibal payment gateway. This package requires Payman >= 3.0.0.
pip install payman[zibal]import asyncio
from payman import Payman
from zibal.models import PaymentRequest
pay = Payman("zibal", merchant_id="your-merchant-id")
async def main():
req_params = PaymentRequest(
amount=100_000,
callback_url="https://example.com/callback",
description="Test Payment",
mobile="09123456789",
)
response = await pay.initiate_payment(req_params)
print(response.success, response.track_id)
asyncio.run(main())