06/05 Optimize app: fix Plaid link
This commit is contained in:
@@ -33,6 +33,7 @@ class Config:
|
|||||||
# Plaid (sandbox / development / production)
|
# Plaid (sandbox / development / production)
|
||||||
PLAID_CLIENT_ID = os.environ.get('PLAID_CLIENT_ID', '')
|
PLAID_CLIENT_ID = os.environ.get('PLAID_CLIENT_ID', '')
|
||||||
PLAID_SECRET = os.environ.get('PLAID_SECRET', '')
|
PLAID_SECRET = os.environ.get('PLAID_SECRET', '')
|
||||||
|
# Valid values: sandbox, production (Plaid retired the 'development' environment)
|
||||||
PLAID_ENV = os.environ.get('PLAID_ENV', 'sandbox')
|
PLAID_ENV = os.environ.get('PLAID_ENV', 'sandbox')
|
||||||
|
|
||||||
# Schwab Developer API (OAuth 2.0)
|
# Schwab Developer API (OAuth 2.0)
|
||||||
|
|||||||
@@ -25,9 +25,10 @@ from flask import current_app
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
PLAID_HOSTS = {
|
PLAID_HOSTS = {
|
||||||
'sandbox': 'https://sandbox.plaid.com',
|
'sandbox': 'https://sandbox.plaid.com',
|
||||||
'development': 'https://development.plaid.com',
|
'production': 'https://production.plaid.com',
|
||||||
'production': 'https://production.plaid.com',
|
# 'development' was sunset by Plaid — map it to production so old configs don't break
|
||||||
|
'development': 'https://production.plaid.com',
|
||||||
}
|
}
|
||||||
|
|
||||||
# Plaid top-level category → PFM category name
|
# Plaid top-level category → PFM category name
|
||||||
|
|||||||
Reference in New Issue
Block a user