forked from uncloud/uncloud
[credit card] implement payment
This commit is contained in:
parent
e225bf1cc0
commit
1b06d8ee03
16 changed files with 290 additions and 64 deletions
|
|
@ -10,10 +10,8 @@ from django.core.files.temp import NamedTemporaryFile
|
|||
from django.http import FileResponse
|
||||
from django.template.loader import render_to_string
|
||||
|
||||
|
||||
from uncloud_pay.models import *
|
||||
|
||||
|
||||
class BillRecordInline(admin.TabularInline):
|
||||
model = BillRecord
|
||||
|
||||
|
|
@ -85,8 +83,17 @@ class BillAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
admin.site.register(Bill, BillAdmin)
|
||||
admin.site.register(ProductToRecurringPeriod)
|
||||
admin.site.register(Product, ProductAdmin)
|
||||
|
||||
for m in [ Order, BillRecord, BillingAddress, RecurringPeriod, VATRate, StripeCustomer, StripeCreditCard ]:
|
||||
for m in [
|
||||
BillRecord,
|
||||
BillingAddress,
|
||||
Order,
|
||||
Payment,
|
||||
ProductToRecurringPeriod,
|
||||
RecurringPeriod,
|
||||
StripeCreditCard,
|
||||
StripeCustomer,
|
||||
VATRate,
|
||||
]:
|
||||
admin.site.register(m)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue