如何通过应用发送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();}
}
答案 0 :(得分:1)
Uri uri = Uri.parse("upi://pay?
pa=payee_address&pn=payee_name&tn=transaction_name&am=1&cu=INR&url=url");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
intent.setClassName("in.org.npci.upiapp","in.org.npci.upiapp.HomeActivity");
startActivityForResult(intent,1);