Code Monkey home page Code Monkey logo

django-docdata's Introduction

django-docdata

image

image

image

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.

django-docdata's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-docdata's Issues

license requires commercial parties to release all their code as GPL

Your current license does not permit this app to be used in other Django projects at all,
unless the server-side project (and all clients apps using the site!) publish all their source code too as GPLv3 software. That's what the AGPLv3 license demands of all projects using this software. I don't think that's your intention with this project ;-)

Please consider using the BSD or Apache 2 License as these are better-suited for Django projects (and almost all Django apps are BSD licensed). Since you're the only contributor, you can change the license easily without needing permission from others.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.