env and settings now loading, need to work on mocking next
This commit is contained in:
parent
37ab2f6532
commit
097a637682
|
@ -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':{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue