0
votes

I have made a php based website and working on payment integration now. I want to add upi payment option with paytm, google pay, phonepe and bhim. Once user clicks on icon, appropriate app with predefined VPA and AMOUNT should get loaded

Please help

2
Hello and welcome to StackOverflow. Please take some time to read the help page, especially the sections named "What topics can I ask about here?" and "What types of questions should I avoid asking?". Further, please read the Stack Overflow question checklist. Also learn how to post Minimal, Complete, and Verifiable Examples.Jay Gray

2 Answers

0
votes

The way to do this is to follow the UPI linking specification (page 5).

Assuming that the link will be presented on a mobile web browser, your link should look something like: upi://pay?pa=<VPA>&am=<AMOUNT>

0
votes

You can integrate the UPI intent solution provided by paytm. This will work fine in mobile view, through this integration you will get the deeplink. You need to call the deeplink provided which will invoke all the UPI PSP Apps on the device and shown to the user with payment amount already filled. Just for your information UPI intent will not work in web/desktop. You can integrate UPI collect to support web/desktop payment.