Updated config
This commit is contained in:
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user