Move PayPal out of sandbox in API, add hosts
This commit is contained in:
parent
2f82337d59
commit
ef16bf1cb3
|
@ -10,14 +10,14 @@ from django.utils.timezone import now
|
|||
|
||||
from . import models, serializers, utils
|
||||
|
||||
SANDBOX = True
|
||||
SANDBOX = False
|
||||
if SANDBOX:
|
||||
VERIFY_URL = 'https://ipnpb.sandbox.paypal.com/cgi-bin/webscr'
|
||||
OUR_EMAIL = 'seller@paypalsandbox.com'
|
||||
OUR_CURRENCY = 'USD'
|
||||
else:
|
||||
VERIFY_URL = 'https://ipnpb.paypal.com/cgi-bin/webscr'
|
||||
OUR_EMAIL = 'dunno'
|
||||
OUR_EMAIL = 'info@protospace.ca'
|
||||
OUR_CURRENCY = 'CAD'
|
||||
|
||||
def parse_paypal_date(string):
|
||||
|
|
|
@ -31,7 +31,7 @@ DEBUG = DEBUG_ENV or False
|
|||
if DEBUG: print('Debug mode ON')
|
||||
|
||||
|
||||
PRODUCTION_HOST = 'spaceport.protospace.ca'
|
||||
PRODUCTION_HOST = 'my.dns.t0.vc'
|
||||
|
||||
|
||||
# production hosts
|
||||
|
@ -45,6 +45,7 @@ if DEBUG:
|
|||
'127.0.0.1',
|
||||
'spaceport-api.dns.t0.vc',
|
||||
'api.spaceport.dns.t0.vc',
|
||||
'api.my.dns.t0.vc',
|
||||
]
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
|
|
Loading…
Reference in New Issue
Block a user