Skip to content

irvaniamirali/payman-zibal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payman-zibal

payman-zibal is a plugin for Payman that enables integration with the Zibal payment gateway. This package requires Payman >= 3.0.0.

Installation

pip install payman[zibal]

Quick Example

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())

Links