Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Python client for ČSOB Payment Gateway

Project description

Python client for ČSOB payment gateway

Latest CircleCI build:


pip install pycsob

Run tests:

python test


from pycsob.client import CsobClient, CsobClientError
from pycsob import conf

c = CsobClient('MERCHANT_ID', '',

# init payment
# note: total_amount = 20000.00
r = c.payment_init(1, 2000000, 'https://return.url/', 'Some note', customer_id='a@a.aa')

assert r['resultCode'] == conf.RETURN_CODE_OK
# ...

# init payment and also create template for one-click payment
r = c.payment_init(2, 2000000, 'https://return.url/', 'Some note', customer_id='a@a.aa',
                   return_method='POST', pay_operation='oneclickPayment')

# init one-click payment
r = c.oneclick_init(r['payId'], 123, 10000)

# start (process) one-click payment
r = c.oneclick_start(r['payId'])

Project details

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
pycsob-0.1.1-py2.py3-none-any.whl (10.2 kB) Copy SHA256 hash SHA256 Wheel 3.5 Jun 14, 2016
pycsob-0.1.1.tar.gz (7.6 kB) Copy SHA256 hash SHA256 Source None Jun 14, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page