I have added intent-filter in the activity where I am doing the payments. Here are the details:
<activity>
......
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="upi" />
</intent-filter>
</activity>
and Activity code for receiving intent is:
var intent = getIntent();
I need my app to come as an opton while doing payment via UPI.
To allow users to choose your app for UPI payments, you can create a dialog with a list of payment apps and launch it when the user clicks a "Pay with UPI" button
also make sure to create a custom adapter for payment apps