Skip to main content

django-docdata

https://img.shields.io/pypi/v/django-docdata.svg https://img.shields.io/travis/dokterbob/django-docdata/master.svg https://coveralls.io/repos/dokterbob/django-docdata/badge.svg?branch=master&service=github Code Health

Python/Django client to the Docdata payment system.

What it does

This package offers Python and Django integration for Docdata’s WebMenu product. It offers a direct abstraction of the API living in docdata.interface which does not use Django for anything other than UTF-8 encoding of URL’s. On top of this we implemented a Django persistence layer and a payment_status_changed signal for easy integration into webshops and other applications requiring payments.

Supported versions

This package officially supports Python 2.7 and Django 1.8 and 1.9, pull requests for Python 3 are encouraged.

Who uses this

We are using this package in-house over at Visualspace, on a fairly large production webshop. Some version of this software has been included in pcommerce.payment.docdata by Huub Bouma.

Tests

This package has fairly extensive test coverage. However, a significant portion of the tests currently requires a testing account and hence DOCDATA_MERCHANT_NAME and DOCDATA_MERCHANT_PASSWORD to be setup in the file test_secrets.py (see test_secrets.example). After that the tests can be run with:

./runtests.py

Coverage

Only offline tests are currently being run with Travis, hence the actual coverage should be much higher. To run the online tests as well, Docdata credentials need to be configured in test_project/test_project/test_secrets.py.

Pull requests for properly mocked online interactions based on the examples in Docdata’s implementation manual are greatly appreciated.

Settings

DOCDATA_MERCHANT_NAME

Credentials as supplied by the payment provider.

DOCDATA_MERCHANT_PASSWORD

Credentials as supplied by the payment provider.

DOCDATA_DEBUG

Whether or not to run in testing mode. Defaults to True.

DOCDATA_PROFILE

Which profile to use for processing payments. Defaults to standard.

Metadata

Release files for django-docdata 0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-docdata 0.9
File Size Uploaded Provenance Actions
django-docdata-0.9.tar.gz 8.6 kB Without provenance Details for django-docdata-0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-docdata 0.9
File Interpreter ABI Platform Actions
django_docdata-0.9-py2-none-any.whl Python 2 none any Details for django_docdata-0.9-py2-none-any.whl

Total release size: 22.4 kB

Release files / django-docdata-0.9.tar.gz

Download URL django-docdata-0.9.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
813bff412f16e8a4c45418de6be1b1b89e92283e762bbce253fc4636d3dcbcf8
BLAKE2b-256 checksum
How to use checksums
20252f0802094b1bddb3b0e9b3ae0e666596caf7e301d9c81c2cad486dde3d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_docdata-0.9-py2-none-any.whl

Download URL django_docdata-0.9-py2-none-any.whl
Size 13.9 kB
Tags Python 2
SHA-256 checksum
How to use checksums
020a689edac7b68d26d47daf7f3e6a5a048323eca6ae4e227bd19cbe0ec7fd90
BLAKE2b-256 checksum
How to use checksums
5aa2cee00857f485600783b7613bb908ad262c449c25e2540212cf9f70bae5e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for django-docdata 0.9

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.

Release history Release notifications | RSS feed

This release

0.9 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page