Updated config

This commit is contained in:
2025-09-19 19:20:32 -04:00
parent 8a6da448bb
commit 569e76f21e
6 changed files with 43 additions and 19 deletions

View File

@@ -19,15 +19,16 @@ logger = logging.getLogger(__name__)
# Load Authorize.net credentials
ApplicationConfig = load_config()
# API_LOGIN_ID = ApplicationConfig.API_LOGIN_ID
# TRANSACTION_KEY = ApplicationConfig.TRANSACTION_KEY
# Authorize.net credentials (Sandbox Test Credentials)
API_LOGIN_ID = '9U6w96gZmX'
TRANSACTION_KEY = '94s6Qy458mMNJr7G'
# --- MODIFICATION: Set the environment globally ---
# Set this to SANDBOX for testing, PRODUCTION for live
API_LOGIN_ID = ApplicationConfig.API_LOGIN_ID
TRANSACTION_KEY = ApplicationConfig.TRANSACTION_KEY
# Set Authorize.net environment based on configuration
if ApplicationConfig.CURRENT_SETTINGS == 'PRODUCTION':
constants.environment = constants.PRODUCTION
else:
constants.environment = constants.SANDBOX
constants.show_url_on_request = True # Very useful for debugging
constants.environment = constants.SANDBOX