Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

UPI Payment failure in ionic 4 using web intent #130

Open
ghost opened this issue Aug 17, 2021 · 1 comment
Open

UPI Payment failure in ionic 4 using web intent #130

ghost opened this issue Aug 17, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 17, 2021

I have an android app build in ionic 4. Used web intent package.

Here is my code:

let url = 'upi://pay?pa=' + this.upi_address
+ '&pn=' + this.payee_name
+ '&mc=' + ''
// + '&tid=' + this..transaction_id
+ '&tr=' + this..transaction_id
+ '&am=' + this..amount
+ '&cu=INR&tn=' + this..remark;

const options = {
action: this.webIntent.ACTION_VIEW,
url: url,
}
console.log('options', options);
this.webIntent.startActivityForResult(options).then(
onSuccess => {
console.log('Success', onSuccess);
}, onError => {
console.log('Error', onError);
}
);

All info is redirecting to upi app properly but after enter upi pin it show payment failed due to some security reasons and I did not get what the security issue is.
Getting some error in different upi app after enter upi pin.
e.g. You’ve exceeded the maximum transaction amount set by your bank – Google Pay Error

What should be exact parameters for upi payment or any other way to integrate upi in ionic 4 app ?

@darryncampbell
Copy link
Owner

Hi, there was a similar issue raised at #128 but I was not able to help as it required knowledge of the UPI payment app.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant