如何在IONIC 5中使用深层链接实现UPI支付

问题描述

Tried this way but seems something is wrong

 const url = `upi://pay?pa=${this.payeeVPA}&pn=${this.payeeName}&mc=9999&tid=cxnnkjdfdvjndkjfvn&tr=4894j98cndhcd23&tn=Pay%20to%20mystar%20store&am=1&mam=null&cu=INR`;

const options = {
  action: this.webIntent.ACTION_VIEW,url
};

this.webIntent.startActivityForResult(options).then(success => {
  console.log(success);
  if (success.extras.Status == 'SUCCESS') {
    // SUCCESS RESPONSE
  } else if (success.extras.Status == 'SUBMITTED') {
    // SUBMITTED RESPONSE
  } else if (success.extras.Status == 'Failed' || success.extras.Status == 'FAILURE') {
    // FAILED RESPONSE
  } else {
    // FAILED RESPONSE
  }
},error => {
  console.log(error);
});

使用此网址我无法在 PSP 应用程序中编辑金额,也无法支付金额返回错误。

我们已经引用了这个 link,但没有使用它。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)