Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misaelnieto/lfs-compropago
Compropago Payment processor for LFS
https://github.com/misaelnieto/lfs-compropago
Last synced: 1 day ago
JSON representation
Compropago Payment processor for LFS
- Host: GitHub
- URL: https://github.com/misaelnieto/lfs-compropago
- Owner: misaelnieto
- License: mit
- Created: 2014-12-12T23:41:26.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T22:58:08.000Z (almost 9 years ago)
- Last Synced: 2024-12-13T22:46:02.289Z (28 days ago)
- Language: Python
- Homepage: https://github.com/tzicatl/lfs-compropago
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
==============
LFS Compropago
==============`Django LFS `_ payment processor plugin for `Compropago `_, 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-compropagoModify 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 `_
to get an updated conversion
``LFS_COMPROPAGO_CONVERT_FROM_USD`` to True if you wantFinally, 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.