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

@@ -9,11 +9,19 @@ logger = logging.getLogger(__name__)
# Load Authorize.net credentials
ApplicationConfig = load_config()
API_LOGIN_ID = '9U6w96gZmX' # Sandbox credentials
TRANSACTION_KEY = '94s6Qy458mMNJr7G'
API_LOGIN_ID = ApplicationConfig.API_LOGIN_ID
TRANSACTION_KEY = ApplicationConfig.TRANSACTION_KEY
# Set Authorize.net environment based on configuration
from authorizenet.constants import constants
if ApplicationConfig.CURRENT_SETTINGS == 'PRODUCTION':
constants.environment = constants.PRODUCTION
else:
constants.environment = constants.SANDBOX
constants.show_url_on_request = True
constants.environment = constants.SANDBOX
def verify_customer_authorize_account(db: Session, customer_id: int) -> dict:
"""