Skip to content

Python-Crew/pyhton-crew-payment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python crew payment

Python crew payment is a Python library for dealing with payment and bank gateways

Installation

Use the package manager pip to install Pythoncrewpayment.

pip install python-crew-payment

Usage

Edit your settings.py Add to INATALLED_APPS:

"django_prices",
"enmerkar",
"payment",
"order",

Add this to your settings.py:

CALLBACK_URL = "your callback url"

BANK_CLASS = {
    "Zibal": "payment.banks.zibal.Zibal",
    "Stripe": "payment.banks.stripe.Stripe",
}

BANK_SETTINGS = {
    "zibal": {
        "merchant_code": "zibal",
        "token_api_url": "https://gateway.zibal.ir/v1/request",
        "payment_url": "https://gateway.zibal.ir/start/{}",
        "verify_api_url": "https://gateway.zibal.ir/v1/verify",
    },
    "stripe": {
        "api_key": os.environ.get(
            "STRIPE_API_KEY",
            "set your key",
        ),
    },
    "DEFAULT": "Zibal",
}

BANK_TYPE = "payment.banks.paymentstatuses.BankType"

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages