-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdev.py
More file actions
38 lines (25 loc) · 1.53 KB
/
dev.py
File metadata and controls
38 lines (25 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
from tp_python_realex_example.settings.base import *
import dj_database_url
# Use a postgres DB
db_url = os.environ.get("DATABASE_URL")
if db_url:
DATABASES['default'] = dj_database_url.parse(db_url, conn_max_age=600)
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get("SECRET_KEY", "mq(v8&i$ua(a&_@@$kd*7dglot32bbs7#nu*o77g^88+q(wpv3")
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = ['realex-3d-secure-example.herokuapp.com']
TESTINGPAYS_API_KEY = os.environ.get("TP_API_KEY")
REALEX_URL = "http://localhost:8000/{0}/realex/v1/services".format(TESTINGPAYS_API_KEY)
REALEX_VERIFY_SIGNED_URL = os.environ.get("REALEX_VERIFY_SIGNED_URL",
"http://localhost:8000/{0}/realex/v1/services".format(TESTINGPAYS_API_KEY))
REALEX_VERIFY_ENROLLED_URL = os.environ.get("REALEX_VERIFY_ENROLLED_URL",
"http://localhost:8000/{0}/realex/v1/services".format(TESTINGPAYS_API_KEY))
REALEX_CALLBACK_URL = os.environ.get("REALEX_CALLBACK_URL",
"http://127.0.0.1:8888/threedsverifysig/")
REALEX_MERCHANT_ID = os.environ.get("REALEX_MERCHANT_ID",
TESTINGPAYS_API_KEY)
REALEX_SHARED_SECRET = os.environ.get("REALEX_SHARED_SECRET",
"SharedSecret") #Note you can use any string here when testing against testing pays
STATIC_URL = '/static/'
STATICFILES_DIRS = [os.path.join(BASE_DIR, "static"), ]