Compare commits

...

3 Commits

Author SHA1 Message Date
1f20accdfb
docs update 2024-10-22 01:45:20 +05:00
227b5e9e58
lmao.. varaible account number 2024-10-22 01:44:05 +05:00
f43ec48fb1
docs update 2024-10-22 01:42:07 +05:00
3 changed files with 4 additions and 3 deletions

View File

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

View File

@ -1,7 +1,7 @@
### Maldives Islamic Bank Payment Verification API
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. \
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. \
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. \
(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:
![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.
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.
3. Create `compose.yml` with the follwing contents:
```yaml
services:

2
tx.sh
View File

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