如何通过应用发送 Google Pay 或 Bhim UPI 请求。我知道这一点,但我想发送付款请求:
try {
Uri uri = Uri.parse("upi://pay?pa="+payeeAddress+"&pn="+payeeName+"&tn="+transactionNote+
"&am="+amount+"&cu="+currencyUnit);
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivityForResult(intent,1);}
catch (Exception e) {
Toast.makeText(MainActivity.this, "Sorry! Please Install GPAY or BHIM", Toast.LENGTH_SHORT).show();e.printStackTrace();}
}