env and settings now loading, need to work on mocking next

This commit is contained in:
Oly 2017-01-26 09:07:38 +00:00
parent 37ab2f6532
commit 097a637682
2 changed files with 5 additions and 3 deletions

View File

@ -262,7 +262,7 @@ ADMIN_URL = '^admin/'
# ------------------------------------------------------------------------------
payment_providers = {
PAYMENT_PROVIDERS = {
'braintree': {
'mode': 'sandbox',
'credentials': {
@ -275,7 +275,7 @@ payment_providers = {
"mode": "sandbox", # sandbox or live
'credentials': {
"mode": "sandbox", # sandbox or live
"client_id": end('PAYPAL_CLIENT_ID'),
"client_id": env('PAYPAL_CLIENT_ID'),
"client_secret": env('PAYPAL_CLIENT_SECRET')}
},
'gocardless':{

View File

@ -3,7 +3,9 @@ import pytz
import gocardless
import braintree
from django.conf.settings import payment_providers
from django.conf import settings
print(dir(settings))
payment_providers = settings.PAYMENT_PROVIDERS
# import gocardless_pro
# import paypalrestsdk as paypal