如何通过 android java 发送 google 支付 "Request" 就像亚马逊 bhim 在线支付一样
How to send google pay "Request" via android java like amazon bhim pay online payment
如何通过应用发送 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();}
}
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);
如何通过应用发送 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();}
}
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);