From ef16bf1cb3f524e206a5223568113c343f29178d Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Thu, 13 Feb 2020 22:51:57 +0000 Subject: [PATCH] Move PayPal out of sandbox in API, add hosts --- apiserver/apiserver/api/utils_paypal.py | 4 ++-- apiserver/apiserver/settings.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apiserver/apiserver/api/utils_paypal.py b/apiserver/apiserver/api/utils_paypal.py index 0545eca..0cb90cc 100644 --- a/apiserver/apiserver/api/utils_paypal.py +++ b/apiserver/apiserver/api/utils_paypal.py @@ -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): diff --git a/apiserver/apiserver/settings.py b/apiserver/apiserver/settings.py index e2240ee..295da5d 100644 --- a/apiserver/apiserver/settings.py +++ b/apiserver/apiserver/settings.py @@ -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')