Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Python client for ČSOB Payment Gateway

Project Description

Python client for ČSOB payment gateway

Latest CircleCI build:

Install:

pip install pycsob

Run tests:

python setup.py test

Usage:

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

c = CsobClient('MERCHANT_ID', 'https://iapi.iplatebnibrana.csob.cz/api/v1.6/',
               '/path/to/your/private.key',
               '/path/to/mips_iplatebnibrana.csob.cz.pub')

# 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
c.payment_status(r['payId'])
c.payment_close(r['payId'])
# ...

# 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'])
Release History

Release History

History Node

0.3.0

History Node

0.2.5

History Node

0.2.4

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

This version
History Node

0.1.1

History Node

0.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pycsob-0.1.1-py2.py3-none-any.whl (10.2 kB) Copy SHA256 Checksum SHA256 3.5 Wheel Jun 14, 2016
pycsob-0.1.1.tar.gz (7.6 kB) Copy SHA256 Checksum SHA256 Source Jun 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting