0

Is there any way to directly implement UPI payment in android to a merchant ID/VPA without using a payment gateway like Razorpay / PayU etc?

I have tried using Upi deeplink approach (upi://pay?pa=xxx@xxxx&pn=xxxxxx&mc=null&tid=null&tr=test101&tn=This%20is%20test%20payment&am=10&mam=null&cu=INR&url=null) but it doesn't work

Ankush Kapoor
  • 445
  • 1
  • 8
  • 20

1 Answers1

0

You can try this.

        val request = "upi://pay?pa=merchantVPA&pn=merchantName&mc=merchantcode&tr=transactionID&am=amount&cu=INR"
        val intent = Intent(Intent.ACTION_VIEW)
        intent.data = Uri.parse(request)

        startActivityForResult(intent, REQUEST_CODE)