I am trying to integrate UPI payment in Android using upi:// (Deep Link URL). I am good going with successful transactions, but I need transaction details on the server-side as like in the android intent returning result after payment. Callback / Webhook has to configure
Official UPI Docs is here
They specify URL field (page 6 in approx). But no reply has received to the server when transaction occurs. I need to know the proper implementation of callback with transaction details. And Here is the Deep link I used
val upiURI = "upi://pay?pa=*******@okhdfcbank&url=https://glancer.in/payment_callback.php?id=***&pn=Balu&mc=&tn=TestPay&am=1.00&mam=null&cu=INR&mode=00"
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(upiURI));
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
} else {
Toast.makeText(this, "No application available to handle this request!", Toast.LENGTH_SHORT).show();
}