PyBeanstream is a python client for the Beanstream Payment Gateway API. Although it works it may very well have a few bugs, use at your own risk. Feel free to report bugs.
This version was tested with python 2.7.4 and 3.3.1
Supported transaction types
-Refund (or partial refund)
python setup.py nosetests
Check the tests.py file for test transactions.
Here's a sample transaction:
from pybeanstream.client import BeanClient
d = ('John Doe',
'88 Mont-Royal Est',
b = BeanClient('MY_USERNAME',
response = b.purchase_request(*d)
assert(response['trnApproved'] == '1')
Possible CVD responses:
'1': 'CVD Match',
'2': 'CVD Mismatch',
'3': 'CVD Not Verified',
'4': 'CVD Should have been present',
'5': 'CVD Issuer unable to process request',
'6': 'CVD Not Provided'
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.