Open mtuchi opened 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
You will have to create
.env
file in your current working directory with required variables. Also you can just useprocess.env.{variableName}
e.gprocess.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 SSL
how do i setup these
Perhaps a simple example app will help
@mtuchi Sure I will have to add setup
section on documentation as well as example
usage.
As of now:
USERNAME - Valid MPESA provided username
PASSWORD - Valid MPESA provided password
BUSINESS_NAME - Valid MPESA provided business name
BUSINESS_NUMBER - Valid MPESA provided bisiness number
CA_FILE - Valid MPESA provided CA file
CERT_FILE - Valid MPESA provided cert file
KEY_FILE - Valid MPESA provided key file
PASSPHRASE - Valid MPESA provided passphrase
PUSH_CALLBACK_URL
this has to be your http(s)
path(endpoint) in your application or api
to be called by MPESA engine
for the updates.
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