combo/combo/apps/lingo
Emmanuel Cazenave 38ba9004eb lingo: don't recompute fees after payment (it was for partial payments) (#32441) 2019-05-15 17:53:26 +02:00
..
management general: move cron jobs in app configs (#28000) 2018-11-14 18:54:03 +01:00
migrations lingo: create PaymentBackend objects (#32441) 2019-05-15 17:53:26 +02:00
static/js tipi: allow alphanumeric values for rolrec field (#18131) 2017-08-24 17:03:06 +02:00
templates/lingo lingo/maps: move delete link to objects list (#29382) 2019-03-04 13:43:35 +01:00
README lingo: import README 2015-12-30 17:49:31 +01:00
__init__.py general: move cron jobs in app configs (#28000) 2018-11-14 18:54:03 +01:00
admin.py lingo: add simple model for regies 2015-12-30 17:49:29 +01:00
manager_views.py lingo: extend transaction search to basket item subjects (#27348) 2018-10-29 16:46:01 +01:00
models.py lingo: create PaymentBackend objects (#32441) 2019-05-15 17:53:26 +02:00
urls.py lingo: handle single basket item payment (#25725) 2018-10-04 11:51:30 +02:00
views.py lingo: don't recompute fees after payment (it was for partial payments) (#32441) 2019-05-15 17:53:26 +02: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"], ... }, ...}