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.2 (2016-02-08)
------------------
* Depend on lxml
0.4.2 (2016-02-08)
------------------
* Fix bad dependecy on BeautifoulSoup 4
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.
Metadata
Release files for lfs-compropago 0.4.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| lfs-compropago-0.4.3.tar.gz | 105.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lfs_compropago-0.4.3-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 216.5 kB
Release files / lfs-compropago-0.4.3.tar.gz
| Download URL | lfs-compropago-0.4.3.tar.gz |
|---|---|
| Size | 105.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e6f705327a911dd1f5f44cccec7fb7816371cca4466cb55f0931edcb7bbc7cc
|
|
BLAKE2b-256 checksum How to use checksums |
9847fbf1f1315c6ce08715af387faceb6ba91349ae6895999c0c4b23e3c3e083
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lfs_compropago-0.4.3-py2-none-any.whl
| Download URL | lfs_compropago-0.4.3-py2-none-any.whl |
|---|---|
| Size | 110.7 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
437a93808bd768a59f1a75fc2f9d53aba09e1990571a5d7f9170aa3c81929ad1
|
|
BLAKE2b-256 checksum How to use checksums |
db309c69866688a1860ea87e71f2049baa8e54bd1d07473f10d12de9158cc3e6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lfs-compropago 0.4.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.