Python library for https://usaepay.info/ payment card processing.
Written by reverse engineering PHP code from official SDK: https://help.usaepay.info/developer/sdks/php/
git clone https://github.com/aivisol/py-usaepay.git
cd py-usaepay/
python setup.py installfrom usaepay import usaepay
tran = usaepay.UmTransaction()
tran.key = "YOUR_API_KEY"
tran.card = "4111111111111111"
tran.exp = "0120"
tran.amount = "5.00"
tran.invoice = "123456789"
tran.command = "cc:sale"
res = tran.process()When using sandbox, set:
tran.usesandbox = TrueOnly cc:sale command is implemented at the moment.
BSD license. See LICENSE for details.
You will need to your API key to run those tests which actually send requests to gateway. Use sandbox for tests.
All tests:
python -m unittest discover