You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello am trying to integrate the momo API in my Django web app but i keep getting this error even though i have set the Environment Variable in the config file. it says in your Readme that it's optional to set the environment variable which when left blank it still raises the same exception : Here is what i did
config = { 'ENVIRONMENT': os.environ.get("https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay"),
'BASE_URL': os.environ.get("http://127.0.0.1:8000"),
'CALLBACK_HOST': os.environ.get("http://127.0.0.1:8000"), }
mtnmomo.errors.ConfigurationError: ENVIRONMENT is missing in the configuration
The text was updated successfully, but these errors were encountered:
Hey, I think the issue is the setup you've used. Can you create a .env and update it with the variables that are in .env.example file? It should work . Don't edit config.py file
Hello am trying to integrate the momo API in my Django web app but i keep getting this error even though i have set the Environment Variable in the config file. it says in your Readme that it's optional to set the environment variable which when left blank it still raises the same exception : Here is what i did
config = { 'ENVIRONMENT': os.environ.get("https://sandbox.momodeveloper.mtn.com/collection/v1_0/requesttopay"),
'BASE_URL': os.environ.get("http://127.0.0.1:8000"),
'CALLBACK_HOST': os.environ.get("http://127.0.0.1:8000"), }
mtnmomo.errors.ConfigurationError: ENVIRONMENT is missing in the configuration
The text was updated successfully, but these errors were encountered: