Move PayPal out of sandbox in API, add hosts

This commit is contained in:
Tanner Collin 2020-02-13 22:51:57 +00:00
parent 2f82337d59
commit ef16bf1cb3
2 changed files with 4 additions and 3 deletions

View File

@ -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):

View File

@ -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')