ComproPago payment processor for Django-LFS
Project description
==============
LFS Compropago
==============
`Django LFS <http://getlfs.com/>`_ payment processor plugin for `Compropago <https://compropago.com/>`_, a Payment gateway that accepts payments in well known convenience stores across Mexico.
Installation
============
Modify ``buildout.cfg``. Add ``lfs-compropago`` to ``develop`` and ``eggs``::
[buildout]
....
develop =
src/lfs-compropago
eggs =
django-lfs
...
lfs-compropago
Modify your ``settings.py``
---------------------------
First add ``CompropagoProcessor`` to the list of available payment processors.
It should look like this:
.. code:: python
LFS_PAYMENT_METHOD_PROCESSORS = [
...
["lfs_compropago.CompropagoProcessor", _(u"Compropago")],
]
Add the compropago app to ``INSTALLED_APPS``. Do not forget to also list ``django.contrib.humanize``:
.. code:: python
INSTALLED_APPS = (
'django.contrib.humanize',
...
'lfs_compropago',
)
Now add settings for your compropago account:
.. code:: python
LFS_COMPROPAGO_PRIVATE_API_KEY='pk_test_95a6ded8c854153ff'
LFS_COMPROPAGO_CONVERT_FROM_USD = True
LFS_COMPROPAGO_OPENXCHANGE_API_KEY='skdd_test_5c8658531ec449283'
The default currency for LFS is USD but Compropago only uses MXN. I use `OpenExchangeRates.org <https://openexchangerates.org>`_
to get an updated conversion
``LFS_COMPROPAGO_CONVERT_FROM_USD`` to True if you want
Finally, add url routingsin your ``urls.py``:
.. code:: python
urlpatterns += patterns("",
...
(r'^compropago/', include('lfs_compropago.urls')),
)
Restart Django.
After restart, go to "Manage -> Payment methods", add a new one, and select
"Compropago" on "Module" field.
Contributing
============
Submit bugs and issues to the `GitHub repository <https://github.com/tzicatl/lfs-compropago>`_.
AUTHORS
=======
If you have contributed to this package feel free to add your name and email to the list.
* Noe Nieto <nnieto@noenieto.com>
=======
CHANGES
=======
0.4 (2016-02-7)
----------------
* Moar compatibility fixes to API version 1.0 and 1.1
* Get rid of the image_url field, so Compropago can display the store's logo.
* Get MXN->USD rate from Banxico. Cache it for 1 hour
0.3(2016-01-17)
----------------
* Compatibility with API version 1.1
0.2 (2015-12-27)
----------------
* Improve documentation and packaging.
0.1 (2015-12-01)
----------------
* Initial release to PyPI.
* Functional Payment processor.
LFS Compropago
==============
`Django LFS <http://getlfs.com/>`_ payment processor plugin for `Compropago <https://compropago.com/>`_, a Payment gateway that accepts payments in well known convenience stores across Mexico.
Installation
============
Modify ``buildout.cfg``. Add ``lfs-compropago`` to ``develop`` and ``eggs``::
[buildout]
....
develop =
src/lfs-compropago
eggs =
django-lfs
...
lfs-compropago
Modify your ``settings.py``
---------------------------
First add ``CompropagoProcessor`` to the list of available payment processors.
It should look like this:
.. code:: python
LFS_PAYMENT_METHOD_PROCESSORS = [
...
["lfs_compropago.CompropagoProcessor", _(u"Compropago")],
]
Add the compropago app to ``INSTALLED_APPS``. Do not forget to also list ``django.contrib.humanize``:
.. code:: python
INSTALLED_APPS = (
'django.contrib.humanize',
...
'lfs_compropago',
)
Now add settings for your compropago account:
.. code:: python
LFS_COMPROPAGO_PRIVATE_API_KEY='pk_test_95a6ded8c854153ff'
LFS_COMPROPAGO_CONVERT_FROM_USD = True
LFS_COMPROPAGO_OPENXCHANGE_API_KEY='skdd_test_5c8658531ec449283'
The default currency for LFS is USD but Compropago only uses MXN. I use `OpenExchangeRates.org <https://openexchangerates.org>`_
to get an updated conversion
``LFS_COMPROPAGO_CONVERT_FROM_USD`` to True if you want
Finally, add url routingsin your ``urls.py``:
.. code:: python
urlpatterns += patterns("",
...
(r'^compropago/', include('lfs_compropago.urls')),
)
Restart Django.
After restart, go to "Manage -> Payment methods", add a new one, and select
"Compropago" on "Module" field.
Contributing
============
Submit bugs and issues to the `GitHub repository <https://github.com/tzicatl/lfs-compropago>`_.
AUTHORS
=======
If you have contributed to this package feel free to add your name and email to the list.
* Noe Nieto <nnieto@noenieto.com>
=======
CHANGES
=======
0.4 (2016-02-7)
----------------
* Moar compatibility fixes to API version 1.0 and 1.1
* Get rid of the image_url field, so Compropago can display the store's logo.
* Get MXN->USD rate from Banxico. Cache it for 1 hour
0.3(2016-01-17)
----------------
* Compatibility with API version 1.1
0.2 (2015-12-27)
----------------
* Improve documentation and packaging.
0.1 (2015-12-01)
----------------
* Initial release to PyPI.
* Functional Payment processor.
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
lfs-compropago-0.4.tar.gz
(105.7 kB
view details)
Built Distribution
lfs_compropago-0.4-py2-none-any.whl
(110.6 kB
view details)
File details
Details for the file lfs-compropago-0.4.tar.gz
.
File metadata
- Download URL: lfs-compropago-0.4.tar.gz
- Upload date:
- Size: 105.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81d7f8be3e2b39c747253efdda17e8d6679f4c824d6b03f94019654d76dbb13f |
|
MD5 | 9f679f138eed8b28c79e8139f3cd8fc1 |
|
BLAKE2b-256 | e5f4b07809962e0d68015916f6dce0cf0628041d24379f1952bbad5dfbeedc8a |
File details
Details for the file lfs_compropago-0.4-py2-none-any.whl
.
File metadata
- Download URL: lfs_compropago-0.4-py2-none-any.whl
- Upload date:
- Size: 110.6 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 890570ed12664390185636376f432fe24d65e752c26aaed3d73206fb9e7e3f6e |
|
MD5 | 0dd686c83961fcf814849e6c05455279 |
|
BLAKE2b-256 | a6da75dacd4a98cad98288c0f313337e4916628bc15ec91ce933c2d7a5e90383 |