Compare commits

..

No commits in common. "1f20accdfb92b337655595b382627780c88c913f" and "6759057875ba57464d9d96b60b06dc057a41123c" have entirely different histories.

3 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,6 @@ USERNAME=
PASSWORD= PASSWORD=
TOTP_SEED= TOTP_SEED=
ACCOUNT_NUMBER=
#Cookie #Cookie
QL_0= QL_0=

View File

@ -1,7 +1,7 @@
### Maldives Islamic Bank Payment Verification API ### Maldives Islamic Bank Payment Verification API
This api will allow you to match customers payment and your MIB account history, it will match with transaction time, account owner name and amount. \ This api will allow you to fetch customers payment and your MIB account history, it will match with transaction time, account owner name and amount. \
but slight issue is that, MIB to MIB transaction sometimes have MIBs made-up name for the account owner name, This is challenging, so work around that, \ but slight issue is that, MIB to MIB transaction sometimes have MIBs made-up name for the account owner name, This is challenging, so work around that, \
I added option to send customers account number to fetch the made-up name and match with it. \ I added option to send customers account number to fetch the made-up name and match with it. \
(BML) Farava transations works perfectly with just the name! \ (BML) Farava transations works perfectly with just the name! \
@ -11,7 +11,7 @@ It uses cookie from webssion to fetch everything, it also has a keepalive servic
1. Login to MIB web [https://faisanet.mib.com.mv/](https://faisanet.mib.com.mv/) and get the cookie: 1. Login to MIB web [https://faisanet.mib.com.mv/](https://faisanet.mib.com.mv/) and get the cookie:
![get_cookie_env.png](get_cookie_env.png) ![get_cookie_env.png](get_cookie_env.png)
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. 2. copy .env.example to .env and fill `QL_0` and `IBSID` with contents from step 1.
3. Create `compose.yml` with the follwing contents: 3. Create `compose.yml` with the follwing contents:
```yaml ```yaml
services: services:

2
tx.sh
View File

@ -4,5 +4,5 @@ source .env 2> /dev/null
curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \ curl 'https://faisanet.mib.com.mv/ajaxAccounts/trxHistory' \
-H "cookie: ql_0=${QL_0}; IBSID=${IBSID}" \ -H "cookie: ql_0=${QL_0}; IBSID=${IBSID}" \
--data-raw "accountNo=${ACCOUNT_NUMBER}&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1" -s \ --data-raw 'accountNo=90101400028321000&trxNo=&trxType=0&sortTrx=date&sortDir=desc&fromDate=&toDate=&start=1&end=20&includeCount=1' -s \
| sed 's/"benefName":"BML - /"benefName":"/g' | sed 's/"benefName":"BML - /"benefName":"/g'