From 51b1d86227060ae5cf9ace259b86cfe132d5f3f2 Mon Sep 17 00:00:00 2001 From: Edwin Eames Date: Sun, 1 Feb 2026 12:35:15 -0500 Subject: [PATCH] Fix undefined variable error in payment_service.py - Alias 'authorizenet.constants' to 'auth_net_constants' to avoid conflict/confusion with 'constants' variable --- app/services/payment_service.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/payment_service.py b/app/services/payment_service.py index 2217965..68a9f24 100644 --- a/app/services/payment_service.py +++ b/app/services/payment_service.py @@ -19,7 +19,7 @@ from authorizenet.apicontrollers import ( createCustomerPaymentProfileController, getCustomerProfileController ) -from authorizenet.constants import constants +from authorizenet.constants import constants as auth_net_constants from .. import schemas from ..constants import TransactionStatus, TransactionType, STATE_ID_TO_ABBREVIATION from ..utils import sanitize_input @@ -33,7 +33,7 @@ from config import load_config, API_LOGIN_ID, TRANSACTION_KEY, VALIDATION_MODE, ApplicationConfig = load_config() # Set environment -constants.environment = ENVIRONMENT +auth_net_constants.environment = ENVIRONMENT