-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
74 additions
and
98 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
from django.contrib import admin | ||
import billing.models as billing_models | ||
|
||
admin.site.register(billing_models.GCNewOrderNotification) | ||
admin.site.register(billing_models.AuthorizeAIMResponse) | ||
admin.site.register(billing_models.WorldPayResponse) | ||
admin.site.register(billing_models.AmazonFPSResponse) | ||
|
||
|
||
class PaylaneTransactionAdmin(admin.ModelAdmin): | ||
list_display = ('customer_name', 'customer_email', 'transaction_date', 'amount', 'success', 'error_code') | ||
list_filter = ('success',) | ||
ordering = ('-transaction_date',) | ||
search_fields = ['customer_name', 'customer_email'] | ||
|
||
admin.site.register(billing_models.PaylaneTransaction, PaylaneTransactionAdmin) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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
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,15 +1,7 @@ | ||
from django.conf import settings | ||
from django.db import models | ||
from billing.utils.modules import get_module_names, get_models | ||
|
||
MODELS = getattr(settings, 'MERCHANT_MODELS', None) | ||
|
||
# Magic to import all active models | ||
for module_name in get_module_names(__name__): | ||
gateway = module_name.replace('_models', '') | ||
if not MODELS or gateway in MODELS: | ||
module = __import__('%s.%s' % (__name__, module_name), fromlist="*") | ||
for model in get_models(module): | ||
if model._meta.app_label.startswith('models.'): | ||
model._meta.app_label = __name__.split(".")[0] | ||
globals()[model.__name__] = model | ||
from authorize_models import AuthorizeAIMResponse | ||
from gc_models import GCNewOrderNotification | ||
from world_pay_models import WorldPayResponse | ||
from eway_models import EwayResponse | ||
from amazon_fps_models import AmazonFPSResponse | ||
from paylane_models import PaylaneTransaction, PaylaneAuthorization | ||
from pin_models import PinCard, PinCustomer, PinCharge |
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
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
|
||
class EwayResponse(models.Model): | ||
pass | ||
pass |
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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