NUUP: Difference between revisions

automate upi payment flow
Tags: Mobile edit Mobile web edit Advanced mobile edit
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 125: Line 125:
== Automating scan to pay process ==
== Automating scan to pay process ==
Create `~/upi-pay.sh`
Create `~/upi-pay.sh`
{{{
<nowiki>
echo Processing UPI url from clipboard ...
echo Processing UPI url from clipboard ...
wl-paste | grep -oP '.*pa=\K.*' | grep -oP '.*?(?=&pn)' | wl-copy -n
wl-paste | grep -oP '.*pa=\K.*' | grep -oP '.*?(?=&pn)' | wl-copy -n
echo Dialing *99*1*3# ...
echo Dialing *99*1*3# ...
gnome-calls -l '*99*1*3#'
gnome-calls -l '*99*1*3#'
}}}
</nowiki>


and `~/.local/share/applications/upi-pay.desktop`
and `~/.local/share/applications/upi-pay.desktop`


{{{
<nowiki>
[Desktop Entry]
[Desktop Entry]
Name=UPI Pay
Name=UPI Pay
Line 144: Line 144:
Type=Application
Type=Application
Icon=
Icon=
}}}
</nowiki>


Now scan the QR with your camera app or QR app and copy upi id to clipboard. Then you can open the UPI Pay app, which wiil extract the upi id and bring you directly to enter upi id. Just paste the extracted upi id to proceed with payment.
Now scan the QR with your camera app or QR app and copy upi id to clipboard. Then you can open the UPI Pay app, which wiil extract the upi id and bring you directly to enter upi id. Just paste the extracted upi id to proceed with payment.
Retrieved from "https://wiki.fsci.in/NUUP"