lykmapipo / tz-mpesa-ussd-push

Vodacom Tanzania USSD Push API Client
MIT License
25 stars 6 forks source link

Environment variables explained #11

Open mtuchi opened 4 years ago

mtuchi commented 4 years ago

Is your feature request related to a problem? Please describe. There is no clear process to outline how and where to get the values for all environment variables

Describe the solution you'd like A short brief could help connect the dots on where and to setup those environment variables, For-example the SSL variables is there a procedure to guide how the setup should be like

lykmapipo commented 4 years ago

@mtuchi

You will have to create .env file in your current working directory with required variables. Also you can just use process.env.{variableName} e.g process.env.TZ_MPESA_USSD_PUSH_USERNAME=mpesa before import the library.

Hope it helps.

mtuchi commented 4 years ago

@mtuchi

You will have to create .env file in your current working directory with required variables. Also you can just use process.env.{variableName} e.g process.env.TZ_MPESA_USSD_PUSH_USERNAME=mpesa before import the library.

Hope it helps.

@lykmapipo I was hopping to under stand these items,

TZ_MPESA_USSD_PUSH_USERNAME=
TZ_MPESA_USSD_PUSH_PASSWORD=
TZ_MPESA_USSD_PUSH_BUSINESS_NAME=
TZ_MPESA_USSD_PUSH_BUSINESS_NUMBER=
TZ_MPESA_USSD_PUSH_CALLBACK_URL=
TZ_MPESA_USSD_PUSH_BASE_URL=
TZ_MPESA_USSD_PUSH_LOGIN_PATH=
TZ_MPESA_USSD_PUSH_REQUEST_PATH=
TZ_MPESA_USSD_SSL_CA_FILE_PATH=
TZ_MPESA_USSD_SSL_CERT_FILE_PATH=
TZ_MPESA_USSD_SSL_KEY_FILE_PATH=
TZ_MPESA_USSD_SSL_PASSPHRASE=

Forexample BUSINES_NAME & NUMBER values. Do i need to be registered with mpesa-lipa or is there a process for acquiring a business name & number, Similar to SSLhow do i setup these Perhaps a simple example app will help

lykmapipo commented 4 years ago

@mtuchi Sure I will have to add setup section on documentation as well as example usage.

As of now: