A simple, easy to use wrapper for Elavon's Converge API via key value pairs instead of XML
Project description
Python Converge API
A simple, easy to use wrapper for Elavon's Converge API via key value pairs instead of XML.
Compatibility
This package will work with python 2 and 3
Installation
pip install convergence-api
Or to get master
wget https://github.com/wontonst/python-converge-api/archive/master.zip
unzip python-converge-api-master.zip
pip install python-converge-api-master
Example usage
Construct a new instance with your merchant ID, user ID, PIN and if you're using demo credentials or not.
c = Converge('your merchant id', 'your user id', 'your pin', is_demo=True)
You can then call any of the Converge transaction type with ->request()
and provide the transaction type as well as an array of key value pairs to send to the API. The package will use the demo or live endpoint automatically based on how you constructed the object.
ccsale
response = c.request(
'ccsale',
ssl_card_number='***********7813',
ssl_exp_date='0124',
ssl_cvv2cvc2='1234',
ssl_amount='10.00',
ssl_avs_address='123 easy st',
ssl_avs_zip='94041',
ssl_3dsecure_value='false'
)
print(response)
{'errorCode': '5000', 'errorMessage': 'The Credit Card Number supplied in the authorization request appears to be invalid.', 'success': False, 'errorName': 'Credit Card Number Invalid'}
All Transaction Types
* ccauthonly
* ccavsonly
* ccsale
* ccverify
* ccgettoken
* cccredit
* ccforce
* ccbalinquiry
* ccgettoken
* ccreturn
* ccvoid
* cccomplete
* ccdelete
* ccupdatetip
* ccsignature
* ccaddrecurring
* ccaddinstall
* ccupdatetoken
* ccdeletetoken
* ccquerytoken
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file convergence-api-0.2.tar.gz
.
File metadata
- Download URL: convergence-api-0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c315e43c342b681a451c8ae5e76828f219564e9d6500f7351f70656a658a6dfd |
|
MD5 | 312b9db28731b7ee6fab4aead34e99c2 |
|
BLAKE2b-256 | 3aa697bcc101c7b7775511d63204b35f3deb748358bc7c76acb2fc99c0ff4833 |