Skip to main content

Django app for verifying web app receipts

Project description

Parsing of web app receipts in Django. A simple library to parse web application receipts in Django. It follows the same syntax as the verification service at thee Mozilla Marketplace.

This is optional, you can just verify your receipt with the Marketplace. However there are a couple of reasons you might want to do this:

  • analytics, tracking usage of your app as it checks receipts

  • tracking usage of receipt by IP address to prevent sharing of receipts

  • blocking of receipts that you know are fradulent.

This app provides a django model that shows the receipts that been processed, allowing you to block the receipts there.

Installation

Install from pypi:

pip install django-receipts

Usage

Add django_receipts to your INSTALLED_APPS:

INSTALLED_APPS = (...
        'django_receipts',
)

Run syncdb to install the table:

python manage.py syncdb

Add in django-receipts into your urls, for example:

urlpatterns = patterns('',
         ...
         url(r'^receipts/', include('django_receipts.urls')),
)

You will then be able to do a POST to:

curl -X POST http://localhost:1234/receiive --data "good.receipt"

This will return:

{"status": "ok"}

See django_receiptsconstants.py for more.

Configuration

  • RECEIPT_CHECK_INTERVAL (optional): time between receipts from the client to actually send receipts to the server. Effectively a cache of the check against the server. Default: 60 minutes.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-receipts-0.1.5.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file django-receipts-0.1.5.tar.gz.

File metadata

File hashes

Hashes for django-receipts-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8e3cff283207b96ba4ca742e15b52ffae23c9cd342aa9092518c694cf508a741
MD5 7b34d343039018858c6571ee49d22661
BLAKE2b-256 4048e084dd1b60e30c2e68d17c4ca14dd51ebf2c90bc067f28e96a1b22a72b2b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page