Skip to main content

A simple, easy to use wrapper for Elavon's Converge API via key value pairs instead of XML

Reason this release was yanked:

wrong versioning

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


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.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: convergence-api-0.1.1.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

Hashes for convergence-api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3a42b4f1e110774ff010d206f9cf28cb20f404cb93a2b930b175f57da6b81160
MD5 9e5a5fd9070ac9df2994d2eb1cb90d9f
BLAKE2b-256 8db5803ae68ebf01d4dd5f8b72fd0221219a97322e409c24a128f66813c42518

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