[obsolète] Extension à Combo pour le paiement de paniers
This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Serghei Mihai 227e37a8f7 round amount computed from query string (#9174) 2015-12-22 15:00:49 +01:00
debian debian: add missing build-depends on dh-python 2015-12-20 09:40:01 +01:00
lingo round amount computed from query string (#9174) 2015-12-22 15:00:49 +01:00
tests round amount computed from query string (#9174) 2015-12-22 15:00:49 +01:00
.gitignore ignore django.mo files 2015-03-10 11:14:35 +01:00
COPYING add license file 2015-02-08 11:33:44 +01:00
MANIFEST.in add VERSION in MANIFEST.in (fix versioning) 2015-03-31 16:05:40 +02:00
README compute item amount from query string (#9174) 2015-12-22 14:27:10 +01:00
jenkins.sh add a jenkins.sh 2015-10-14 23:24:52 +02:00
setup.py add dependency on eopayment >=1.3 (#9025) 2015-11-30 14:32:01 +01:00

README

Lingo
=====

Lingo is an extension module for the combo content management system, adding
basket and payment features.

License
-------

This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
details.

You should have received a copy of the GNU Affero General Public License along
with this program.  If not, see <http://www.gnu.org/licenses/>.

API
---

Items amount can be added to basket through API by posting to
*/api/lingo/add-basket-item* endpoint a json payload containing *amount* and/or
*"extra": {"amount": ...}* attribute or passing *amount* in the query string

For example:

    {"display_name": "<item display name>",
     "url": "http://<item url>",
     "amount": "42.42",
     "extra": {"amount": "10.42", ...},
     ...
     }

or
    /api/lingo/add-basket-item?amount=10

The "amount" attribute should be float or decimal or a list of
floats/decimals. For example:

    {"amount": [14.12], "extra": {"amount": ["10.42", "5", "10"], ... }, ...}