=============
Django app for Moneta eTerminal API.
Mozzila's NSS library is used for secure communications, because OpenSSL or GnuTLS doesn't work with Moneta's servers.
Requirements
------------
* [Django] 1.3+
* [pysimplesoap] 1.08b+
* [python-nss] 0.12+
Installation
--------------
```pip install django-moneta```
Usage
-----
1. Create NSS database with Mobitel's root CA certificate and your client certificate (you can use certconvert.sh)
2. Edit your settings.py
* Add `moneta` to `INSTALLED_APPS`
* set `MONETA_DBDIR` to point to NSS directory you've created in the first step
* set `MONETA_CERT_NAME` to your client certificate name
* optionally set `MONETA_PIN` if you're using it
* set `MONETA_PRODUCTION` to `True` when you go to production
3. Use `Transaction` model:
```python
from decimal import Decimal
from moneta.models import Transaction
t = Transaction(value=Decimal('1.23'), reference='areference123')
token = t.getToken()
print "Please call %s to pay." % token
t.getStatus()
print t.status #should be 11 since it was just created
t.cancel()
print t.status #should be 7
```
When transaction is finished `transaction_done` signal is emitted.
TODO
====
* Suport delayed transaction
* Support other API functions
Author
------
[Visionect d.o.o.], [Matevž Mihalič]
Licence
-------
MIT: http://mit-license.org/
[Django]: http://djangoproject.com/
[pysimplesoap]: https://code.google.com/p/pysimplesoap/
[python-nss]: https://www.mozilla.org/projects/security/pki/python-nss/
[Visionect d.o.o.]: http://www.visionect.si
[Matevž Mihalič]: http://marv.si
Metadata
Release files for django-moneta 0.1
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 | Actions |
|---|---|---|---|---|
| django-moneta-0.1.tar.gz | 5.2 kB | Without provenance | Details for django-moneta-0.1.tar.gz |
Release files / django-moneta-0.1.tar.gz
| Download URL | django-moneta-0.1.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18533c40943d9159104c5ed5a10648badb331d949fd69e5e7be2e17f210d041b
|
|
BLAKE2b-256 checksum How to use checksums |
c625030630e1e3b02f473646ef79ea263f144d13edd625b3904eb49a5d83e123
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-moneta 0.1
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.