-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Tomas Neme <[email protected]>
- Loading branch information
1 parent
6bc076c
commit d654490
Showing
1 changed file
with
42 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,45 @@ | ||
django-oscar-payments | ||
===================== | ||
|
||
pluggable payments plugin for django-oscar | ||
pluggable payments plugin for django-oscar | ||
|
||
This module is supposed to be used to override oscar's checkout app, and it | ||
supports various pluggable reusable payment systems, that have to be based off | ||
`oscar_overrides.modules.payment.base.app`. The | ||
`oscar_overrides.modules.payment.base.views` provides some basic mixins from | ||
which to build your plugins' views. | ||
|
||
**DISCLAIMER** | ||
This code comes from a private framework I'm working on for | ||
http:https://www.sologroup.gs/ As such it has some things that might be sub-ideal for | ||
a standalone reusable app (such as the `OSCAR_OVERRIDES_PACKAGE` setting). I'm | ||
more than open to accepting fixes these (and bugfixes, and any reusable | ||
plugins you might want to create), and bringing the package to level. | ||
|
||
Settings | ||
-------- | ||
* `OSCAR_PAYMENT_MODULES`. A list of `(url, module name)` tuples. This is where | ||
you configure your active payment modules. An example that uses paypal, | ||
and the dummy would be this: | ||
|
||
``` | ||
BOILER_PAYMENT_MODULES = [ | ||
(r'^paypal/', 'boilerplate.apps.store.modules.payment.paypal'), | ||
] | ||
if DEBUG: | ||
BOILER_PAYMENT_MODULES.append( | ||
(r'^dummy/', 'boilerplate.apps.store.modules.payment.dummy')) | ||
``` | ||
|
||
* `OSCAR_OVERRIDES_PACKAGE`. This is used by the checkout root view to find the | ||
|
||
Example Plugins | ||
--------------- | ||
There's a couple of example payment modules: | ||
|
||
* `dummy`. This module asks you to introduce test credit card data, and marks the | ||
order as paid. To be used during development. | ||
* `paypal`. This is a pluggable payment plugin for django-oscar-paypal. It | ||
requires django-oscar-paypal if you'll use it, and it uses it's urls, and | ||
templates | ||
|