diff --git a/.env.example b/.env.example index 0879d7e..b80b210 100644 --- a/.env.example +++ b/.env.example @@ -6,6 +6,8 @@ PROFILE_ID= PROFILE_TYPE= ACCOUNT_NUMBER= +COOKIE_SERVER=http://cookieserver:5000 + APP_DEBUG=true ## This valu is for time difference between request json and actual time of the transacation (+ or -) in mins, 5 or 10 is probably a good value diff --git a/README.md b/README.md index aca1d10..bf225ff 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,20 @@ ## How to deploy/get started (with docker/podman) -1. Login to MIB web [https://faisanet.mib.com.mv/](https://faisanet.mib.com.mv/) and get the cookie: -![get_cookie_env.jpg](get_cookie_env.jpg) -2. copy .env.example to .env and fill `QL_0` and `IBSID` with contents from step 1, Make sure to fill `ACCOUNT_NUMBER` with your account number. +1. Login to MIB web [https://faisanet.mib.com.mv/](https://faisanet.mib.com.mv/) and get the your profile id and type: +![select_profile.jpg](select_profile.jpg) +2. copy .env.example to .env and fill your MIB Username, Password and TOTP Seed, `PROFILE_ID` and `PROFILE_TYPE` needs to be filled with contents from step 1, Make sure to fill `ACCOUNT_NUMBER` with your account number. 3. Create `compose.yml` with the follwing contents: ```yaml services: keepalive: env_file: .env image: git.shihaam.dev/shihaam/mib-payment-verify/keepalive + + cookieserver: + env_file: .env + image: git.shihaam.dev/shihaam/mib-payment-verify/cookieserver + api: env_file: .env image: git.shihaam.dev/shihaam/mib-payment-verify/api @@ -24,7 +29,7 @@ services: - 5000:5000 ``` -3. Run `docker compose up -d` and that is all. +4. Run `docker compose up -d` and that is all. ## Using the API with curl examples: diff --git a/compose.yml b/compose.yml index fb870a3..cbcacfd 100644 --- a/compose.yml +++ b/compose.yml @@ -2,6 +2,9 @@ services: keepalive: env_file: .env image: git.shihaam.dev/shihaam/mib-payment-verify/keepalive + cookieserver: + env_file: .env + image: git.shihaam.dev/shihaam/mib-payment-verify/cookieserver api: env_file: .env image: git.shihaam.dev/shihaam/mib-payment-verify/api diff --git a/select_profile.jpg b/select_profile.jpg new file mode 100644 index 0000000..8de149f Binary files /dev/null and b/select_profile.jpg differ