=====
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
About Beanstream:
http://www.beanstream.com/public/index.asp
Supported transaction types
===========================
-Pre-auth
-Capture
-Purchase
-Token Purchase
-Refund (or partial refund)
-Void
Running tests:
==============
python setup.py nosetests
Sample Code
===========
Check the tests.py file for test transactions.
Here's a sample transaction:
from pybeanstream.client import BeanClient
d = ('John Doe',
'371100001000131',
'1234',
'05',
'15',
'10.00',
'123456789',
'john.doe@pranana.com',
'John Doe',
'5145555555',
'88 Mont-Royal Est',
'Montreal',
'QC',
'H2T1N6',
'CA'
)
b = BeanClient('MY_USERNAME',
'MY_PASSWORD',
'MY_MERCHANT_ID')
response = b.purchase_request(*d)
assert(response['trnApproved'] == '1')
API Notes:
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'
Metadata
Release files for PyBeanstream 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyBeanstream-0.5.2.tar.gz | 11.5 kB | Without provenance | Details for PyBeanstream-0.5.2.tar.gz |
Release files / PyBeanstream-0.5.2.tar.gz
| Download URL | PyBeanstream-0.5.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44f4eccfa498960dd23d9992bd1915b34bfa65e5d087a6ef05c4997fb442ff02
|
|
BLAKE2b-256 checksum How to use checksums |
b66a0604e3b9073f0befa5e45b433fc9c689fc9812444d69a0b4eba466d7f8ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PyBeanstream 0.5.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.