forked from uncloud/uncloud
List all the credit cards and the ability to add more cards
This commit is contained in:
parent
7986b825a7
commit
1c3d3efb3a
22 changed files with 528 additions and 158 deletions
|
|
@ -15,4 +15,5 @@ GITLAB_YAML_DIR=
|
|||
GITLAB_PROJECT_ID=
|
||||
GITLAB_OAUTH_TOKEN=
|
||||
GITLAB_AUTHOR_EMAIL=
|
||||
GITLAB_AUTHOR_NAME=
|
||||
GITLAB_AUTHOR_NAME=
|
||||
WKHTMLTOPDF_CMD=/usr/bin/wkhtmltopdf
|
||||
|
|
@ -92,7 +92,7 @@ MIDDLEWARE = [
|
|||
]
|
||||
|
||||
ROOT_URLCONF = 'uncloud.urls'
|
||||
WKHTMLTOPDF_CMD = "/usr/local/bin/wkhtmltopdf"
|
||||
WKHTMLTOPDF_CMD = env('WKHTMLTOPDF_CMD')
|
||||
|
||||
TEMPLATES = [
|
||||
{
|
||||
|
|
@ -217,6 +217,7 @@ OPENNEBULA_USER_PASS = 'user:password'
|
|||
STRIPE_KEY=env('STRIPE_KEY')
|
||||
STRIPE_PUBLIC_KEY=env('STRIPE_PUBLIC_KEY')
|
||||
BILL_PAYMENT_DELAY = 0
|
||||
MIN_PER_TRANSACTION = 5
|
||||
# The django secret key
|
||||
SECRET_KEY=get_random_secret_key()
|
||||
|
||||
|
|
@ -279,6 +280,7 @@ REPORT_FORMAT = {
|
|||
'header_line': False,
|
||||
}
|
||||
|
||||
|
||||
# Overwrite settings with local settings, if existing
|
||||
try:
|
||||
from uncloud.local_settings import *
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ router.register(r'v2/payment/balance', payviews.BalanceViewSet, basename='paymen
|
|||
router.register(r'v2/payment/address', payviews.BillingAddressViewSet, basename='billingaddress')
|
||||
router.register(r'v2/orders', payviews.OrderViewSet, basename='orders')
|
||||
router.register(r'v2/bill', payviews.BillViewSet, basename='bills')
|
||||
router.register(r'v2/machines', matrixviews.MachineViewSet, basename='machines')
|
||||
|
||||
# Generic helper views that are usually not needed
|
||||
router.register(r'v2/generic/vat-rate', payviews.VATRateViewSet, basename='vatrate')
|
||||
|
|
@ -62,6 +61,7 @@ urlpatterns = [
|
|||
path('pricing/<slug:name>/calculate/', payviews.PricingView.as_view(), name='pricing_calculator'),
|
||||
path('cc/reg/', payviews.RegisterCard.as_view(), name="cc_register"),
|
||||
path('inbox/notifications/', include(notifications.urls, namespace='notifications')),
|
||||
path('payments/', include('uncloud_pay.urls', namespace='payments')),
|
||||
path('', include('matrixhosting.urls', namespace='matrix')),
|
||||
# path('', uncloudviews.UncloudIndex.as_view(), name="uncloudindex"),
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue