GithubHelp home page GithubHelp logo

charstring / django-oscar-gocardless Goto Github PK

View Code? Open in Web Editor NEW

This project forked from django-oscar/django-oscar-gocardless

0.0 3.0 0.0 138 KB

GoCardless integration for django-oscar

License: BSD 3-Clause "New" or "Revised" License

Python 95.28% Shell 1.68% HTML 3.04%

django-oscar-gocardless's Introduction

GoCardless package for django-oscar

This is a work in progress - not ready for production yet. It also depends on the forthcoming version of oscar (0.2) which hasn't been released yet.

Overview

GoCardless provide payments straight from customer's bank accounts using the Direct Debit system. A typical integration involves redirecting the user to GoCardless' site where they enter their bank account details and confirm the transaction.

This library provides integration between GoCardless and django-oscar.

Installation

You need to make sure your redirect URI and cancel URIs are set up within your GoCardless dashboard. Only the scheme and domain need to match so you can just put your site URL in there.

Augment your root URLs conf to include:

(r'^gocardless/', include('oscar_gocardless.urls')),

You'll need to fork the checkout app and override the PaymentDetailsView to call the GoCardless API for handling payment. See the sandbox install for an example of how this can be done.

[Further installation instructions to appear when this library is ready for production]

Limitations

  • Only the 'one-off bill' transaction has been implemented so far.
  • Webhook handling isn't implemented yet.
  • Refunds aren't possible through the GoCardless API at the moment. These should be handled either through BACS transfers or a cheque payment.

Contribute

Create a virtualenv, clone repo and install dependencies:

mkvirtualenv oscar-gocardless
git clone git://github.com/tangentlabs/django-oscar-gocardless.git
cd django-oscar-gocardless
python setup.py develop
pip install -r requirements.txt

Set up a sandbox site to play with:

cd sandbox
./manage.py syncdb --noinput
./manage.py migrate
./manage.py oscar_import_catalogue data/books-catalogue.csv

You can test the end-to-end process by adding an item to your basket and then proceeding through checkout. After the preview page, you'll be redirected to the GoCardless 'sandbox' site where you can use the following account details to complete an order:

Account number -  55779911
Sort code - 200000

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.