dmpayton / qualpay-python

:credit_card: Python bindings for Qualpay

Home Page:https://www.qualpay.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

qualpay-python

Python bindings for Qualpay

Build Status Code Climate GPA codecov.io

Documentation

qualpay-python.readthedocs.org

Basic Usage

>>> import qualpay

>>> qualpay.merchant_id = '<your merchant id>'
>>> qualpay.security_key = '<your security key>'

>>> card = qualpay.Card(
    number='4111 1111 1111 1111',
    exp_month=1,
    exp_year=2020,
    cvv2='111'
)

>>> card.is_valid
True

>>> card.authorize(10)
{
    'rcode': '000',
    'rmsg': 'Approved T63362',
    'pg_id': '8af556ae480811e484b20c4de99f0aaf'
}

About

:credit_card: Python bindings for Qualpay

https://www.qualpay.com/

License:MIT License


Languages

Language:Python 100.0%