Skip to main content

Vakıfbank Payment Gateway Python Package

Project description

Vakıfbank Python Package


pip install vakifbank


First import module from vakifbank package.

from vakifbank.ThreeD_Payment import ThreeDPayment

Prepare your credentials. You can get your store password and id from

credentials = { 
    'HostMerchantId': YourHostMerchantId,
    'HostPassword' : YourHostPassword,
    'HostTerminalId': YourHostTerminalId 

Then initialize 3D payment class with credentials.

three_d = ThreeDPayment(credentials)

Prepare your data in your website form

data = {
    "order_id": random.randrange(1000),
    "amount": "1.00",
    "expiry": EXPIRYDATE,
    "currency": currency,
    "success_url": YOUR_SUCCESS_URL,
    "fail_url": YOUR_FAIL_URL

Prepare request data


Get Enrollment Result


Get Your Prepared Html Page


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vakifbank-0.1.3.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

vakifbank-0.1.3-py3-none-any.whl (15.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page