read .env first lol and also follow redirects

This commit is contained in:
Shihaam Abdul Rahman 2023-05-21 18:38:51 +05:00
parent d87b24b284
commit 8cd3106281
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636

4
fahipay-raastas.sh Normal file → Executable file
View File

@ -1,6 +1,8 @@
#!/bin/bash
source .env
curl -s https://fahipay.mv/actions/payment/ooredoo/recharge/ \
curl --location https://fahipay.mv/actions/payment/ooredoo/recharge/ \
--header "authID: $FAHIPAY_API" \
--form number=$OOREDOO_NUMBER \
--form amount=108