Fix undefined variable error in payment_service.py

- Alias 'authorizenet.constants' to 'auth_net_constants' to avoid conflict/confusion with 'constants' variable
This commit is contained in:
2026-02-01 12:35:15 -05:00
parent 97261f6c51
commit 51b1d86227

View File

@@ -19,7 +19,7 @@ from authorizenet.apicontrollers import (
createCustomerPaymentProfileController, createCustomerPaymentProfileController,
getCustomerProfileController getCustomerProfileController
) )
from authorizenet.constants import constants from authorizenet.constants import constants as auth_net_constants
from .. import schemas from .. import schemas
from ..constants import TransactionStatus, TransactionType, STATE_ID_TO_ABBREVIATION from ..constants import TransactionStatus, TransactionType, STATE_ID_TO_ABBREVIATION
from ..utils import sanitize_input from ..utils import sanitize_input
@@ -33,7 +33,7 @@ from config import load_config, API_LOGIN_ID, TRANSACTION_KEY, VALIDATION_MODE,
ApplicationConfig = load_config() ApplicationConfig = load_config()
# Set environment # Set environment
constants.environment = ENVIRONMENT auth_net_constants.environment = ENVIRONMENT