I am a newbie in programming. I want to create an HTML page which have some buttons to invoke popular UPI payments apps like Google Pay, Paytm, PhonePe, etc. but I don't know how to invoke those application and passing them a url
upi://pay?pa=xyz@paytm&pn=Paytm%20Merchant&mc=abc&mode=02&orgid=000000&paytmqr=abcdefg&sign=abc+xyz/pqr/+stu
Like this:
<a href="<protocol to invoke app with the upi url parameter>">
Donate/Pay via this Payment App
</a>
I can tell you the reference like What app https://api.whatsapp.com/send?phone=<country-code-digit><10-digitmobile-number>
start the chat with given phone number in the url after verifying if that number with country code exist in whatsapp user list.
This Code will open all UPI apps in mobile.
<a href="upi://pay?pa=UPIID@oksbi&pn=FNAME SNAME K&cu=INR" class="upi-pay1">Pay Now !</a>
Also adding spaces in the link won't break the URL
<a href="upi://pay?pa=UPIID@oksbi&pn=JOHN BRITAS AK &cu=INR" class="upi-pay1">Pay Now !</a>