【问题标题】:How to send google pay "Request" via android java like amazon bhim pay online payment如何通过android java发送google pay“请求”,如amazon bhim pay在线支付
【发布时间】:2020-02-17 19:48:41
【问题描述】:

如何通过应用发送 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();}
}

【问题讨论】:

    标签: java android payment google-pay upi


    【解决方案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);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-28
      • 1970-01-01
      • 2023-01-14
      • 2019-10-28
      • 2021-01-13
      • 2021-10-27
      • 2021-04-07
      • 1970-01-01
      相关资源
      最近更新 更多