Skip to main content

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

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


Download files

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

Source Distribution

convergence-api-0.1.tar.gz (1.9 kB view details)

Uploaded Source

File details

Details for the file convergence-api-0.1.tar.gz.

File metadata

  • Download URL: convergence-api-0.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for convergence-api-0.1.tar.gz
Algorithm Hash digest
SHA256 a10ba4295f4c597813fbd2ff19a485263ce0b568f0e08d0684ee33d3b85052d4
MD5 37193872054e8279fbfec4d3d14aadd2
BLAKE2b-256 0a403b4ca8ad1746798ad7f2ad871f00e788c759aa30e7e39b3a66340d973931

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page