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': {
|
'braintree': {
|
||||||
'mode': 'sandbox',
|
'mode': 'sandbox',
|
||||||
'credentials': {
|
'credentials': {
|
||||||
|
@ -275,7 +275,7 @@ payment_providers = {
|
||||||
"mode": "sandbox", # sandbox or live
|
"mode": "sandbox", # sandbox or live
|
||||||
'credentials': {
|
'credentials': {
|
||||||
"mode": "sandbox", # sandbox or live
|
"mode": "sandbox", # sandbox or live
|
||||||
"client_id": end('PAYPAL_CLIENT_ID'),
|
"client_id": env('PAYPAL_CLIENT_ID'),
|
||||||
"client_secret": env('PAYPAL_CLIENT_SECRET')}
|
"client_secret": env('PAYPAL_CLIENT_SECRET')}
|
||||||
},
|
},
|
||||||
'gocardless':{
|
'gocardless':{
|
||||||
|
|
|
@ -3,7 +3,9 @@ import pytz
|
||||||
import gocardless
|
import gocardless
|
||||||
import braintree
|
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 gocardless_pro
|
||||||
# import paypalrestsdk as paypal
|
# import paypalrestsdk as paypal
|
||||||
|
|
Loading…
Reference in New Issue