The Bancard Python connector provides Python APIs to create, process and manage payments.
Project description
Bancard VPOS 1.0 - Bancard Python Connector 0.5.3 library
=======================================================
Getting Started
---------------
This library allows developers to integrate their Python backend
applications to the Bancard VPOS API.
This library works with the following Python versions: 2.6, 2.7, 3.3,
3.4, 3.5, 3.6
Prerequisites
~~~~~~~~~~~~~
See the requirements.txt file to see which Python libraries will be
required.
Usage in Staging or Production
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can either include this library from:
::
https://github.com/vcajes/bancard-connector-python
Or install the library from the `PYPI
repository <https://pypi.python.org/pypi/bancardconnectorpython/>`__:
::
pip3 install bancardconnectorpython
Usage in development
~~~~~~~~~~~~~~~~~~~~
- Downlaod and install `Python (2.6 <= version <=
3.6) <https://www.python.org/downloads/>`__.
- Run ``pip install bancardpythonconnector``.
- Import and use library in your source code: ``import bancardconnectorpython``.
This will autoconfigure the connector from the following OS environment variables:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BANCARD\_ENVIRONMENT=sandbox\|production
BANCARD\_PUBLIC\_KEY=your\_public\_key
BANCARD\_PRIVATE\_KEY=your\_private\_key
bancard\_api = bancardconnectorpython.connector()
or you could just create your own BancardAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bancard\_api = bancardconnectorpython.BancardAPI(environment=bancardconnectorpython.ENVIRONMENT\_SANDBOX,
public\_key=your\_public\_key, private\_key=your\_private\_key)
Running tests
-------------
- Download and install `Python (2.6 <= version <= 3.6) <https://www.python.org/downloads/>`__
- Install the library from PYPI: ``pip install bancardconnectorpython``
- Set the following two OS environment variables ``BANCARD_PUBLIC_KEY`` and
``BANCARD_PRIVATE_KEY`` with the values provided by Bancard.
- Run any of the tests, i.e.:
``python /path/to/tests/test_bancard_single_buy.py``
Versioning
----------
For the versions available, see the `tags on this
repository <https://github.com/vcajes/bancard-connector-python/tags>`__
Authors
-------
- **Victor Cajes** - [@vcajes](https://github.com/vcajes)
License
-------
This project is licensed under the MIT License - see the
`LICENSE <LICENSE.txt>`__ file for details.
=======================================================
Getting Started
---------------
This library allows developers to integrate their Python backend
applications to the Bancard VPOS API.
This library works with the following Python versions: 2.6, 2.7, 3.3,
3.4, 3.5, 3.6
Prerequisites
~~~~~~~~~~~~~
See the requirements.txt file to see which Python libraries will be
required.
Usage in Staging or Production
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can either include this library from:
::
https://github.com/vcajes/bancard-connector-python
Or install the library from the `PYPI
repository <https://pypi.python.org/pypi/bancardconnectorpython/>`__:
::
pip3 install bancardconnectorpython
Usage in development
~~~~~~~~~~~~~~~~~~~~
- Downlaod and install `Python (2.6 <= version <=
3.6) <https://www.python.org/downloads/>`__.
- Run ``pip install bancardpythonconnector``.
- Import and use library in your source code: ``import bancardconnectorpython``.
This will autoconfigure the connector from the following OS environment variables:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BANCARD\_ENVIRONMENT=sandbox\|production
BANCARD\_PUBLIC\_KEY=your\_public\_key
BANCARD\_PRIVATE\_KEY=your\_private\_key
bancard\_api = bancardconnectorpython.connector()
or you could just create your own BancardAPI
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
bancard\_api = bancardconnectorpython.BancardAPI(environment=bancardconnectorpython.ENVIRONMENT\_SANDBOX,
public\_key=your\_public\_key, private\_key=your\_private\_key)
Running tests
-------------
- Download and install `Python (2.6 <= version <= 3.6) <https://www.python.org/downloads/>`__
- Install the library from PYPI: ``pip install bancardconnectorpython``
- Set the following two OS environment variables ``BANCARD_PUBLIC_KEY`` and
``BANCARD_PRIVATE_KEY`` with the values provided by Bancard.
- Run any of the tests, i.e.:
``python /path/to/tests/test_bancard_single_buy.py``
Versioning
----------
For the versions available, see the `tags on this
repository <https://github.com/vcajes/bancard-connector-python/tags>`__
Authors
-------
- **Victor Cajes** - [@vcajes](https://github.com/vcajes)
License
-------
This project is licensed under the MIT License - see the
`LICENSE <LICENSE.txt>`__ file for details.
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
Close
Hashes for bancardconnectorpython-0.5.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89f3e7f9e127b8ed0a9daf3dbb4ae7aeeef97d2a1115fd8a38dec7d95ef37a8f |
|
MD5 | 96e300231f931d760aa13f805e266943 |
|
BLAKE2b-256 | ac4fd938f392868ba4396edec94c608808ca5d65b4ec6a908b7a652515893f2d |