GithubHelp home page GithubHelp logo

devkral / oscar-web-payments Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 141 KB

Integration of web-payments-cpnnector in django-oscar

License: Other

Python 85.81% HTML 14.19%
payment django-oscar web-payments

oscar-web-payments's Introduction

oscar-web-payments

Web payments integration in oscar

Documentation

Installation

like django.oscar plus:

  • add web_payments.django to INSTALLED_APPS

  • add oscar_web_payments.checkout oscar_web_payments.payment as get_core_apps arguments:

    get_core_apps(['oscar_web_payments.checkout', 'oscar_web_payments.payment'])

  • set PAYMENT_MODEL to 'payment.Source'

  • set PAYMENT_VARIANTS_API with extra argument verbose_name per provider

Example:

INSTALLED_APPS = [
    ...
    "web_payments.django"
] + get_core_apps(['oscar_web_payments.checkout', 'oscar_web_payments.payment'])


#PAYMENT_PROTOCOL="http" # to disable https, don't recommend, only for testing
#PAYMENT_HOST="example.com" # what is the servername? If you don't want to use Sites
#def PAYMENT_HOST(provider): # can be also a function, taking a provider
#    if provider.extras["name"] == "foo":
#        return "bar.example.com"
#    else:
#        return "example.com"

PAYMENT_MODEL = 'payment.Source'
PAYMENT_VARIANTS_API = {
    'dummy_capture': ('web_payments_dummy.DummyProvider', {}, {"verbose_name": "dummy capturing"}),
    'dummy_nocapture': ('web_payments_dummy.DummyProvider', {"capture": False}, {"verbose_name": "dummy not capturing"}),
    'directwithform': ('web_payments_externalpayments.DirectPaymentProvider', {'skipform': False, 'confirm': True}, {"verbose_name": "direct payment with form"}),
    'direct': ('web_payments_externalpayments.DirectPaymentProvider', {}, {"verbose_name": "direct payment"}),
    'iban': ('web_payments_externalpayments.BankTransferProvider', {
        "iban": "XX5604449899990000",
        "bic": "DABAIE2D"}, {"verbose_name": "IBAN"}
        ),
    }

TODO

  • Implementation

Note: I use semantic versioning.

oscar-web-payments's People

Contributors

devkral avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

oscar-web-payments's Issues

Test fails

The integration test fails. Somehow the request lacks the basket.

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.