Comments (10)
@goforbg It's already implemented.
from easyupipayment-android.
Can I take this up @PatilShreyas ?
from easyupipayment-android.
But what you'll do to solve this issue @goforbg?
from easyupipayment-android.
As the problem mentioned in this issue. This is already expected behaviour
from easyupipayment-android.
@PatilShreyas I'm seeing an official list athttps://www.npci.org.in/upi-PSP%263rdpartyApps
We can maintain a list of array of packages, write a small util function see if those packages are installed using Package Manager and wrap it inside a try catch.
If we wanna go all sicko mode we can write a cron job to fetch it from the page every day and update the list dynamically too 😂
from easyupipayment-android.
yes, even it is crashing..
from easyupipayment-android.
yes, even it is crashing..
This is an expected behaviour as per the current code.
@PatilShreyas,
Maybe show an error warning in the console or maybe add one more method to the Listener when no apps are found?
Avoiding a straight-up crash can be good.
from easyupipayment-android.
I am facing a similar issue.
I have taken care of AppNotFoundException with log and a toast
But still, the app crashes when no payment app is available on the phone.
Please also guide me if I am doing something wrong while writing code.
EasyUpiPayment.Builder builder = null;
EasyUpiPayment easyUpiPayment = null;
try {
builder = new EasyUpiPayment.Builder(FoldersScreen.this)
.with(PaymentApp.ALL)
.setPayeeVpa("upi_id@upi")
.setPayeeName("payee_name")
.setTransactionId(tr_td)
.setTransactionRefId(tr_ref_id)
.setDescription(desc)
.setAmount(amount);
}
catch (IllegalStateException isExc){
Log.d(TAG, "payThroughUPI: "+ isExc.getLocalizedMessage());
Toast.makeText(this, isExc.getLocalizedMessage(), Toast.LENGTH_SHORT).show();
}
finally {
try {
easyUpiPayment = builder.build();
} catch (AppNotFoundException e){
Log.d(TAG, "payThroughUPI: "+ e.getLocalizedMessage());
Toast.makeText(this, "UPI app not found", Toast.LENGTH_SHORT).show();
} finally {
easyUpiPayment.startPayment();
easyUpiPayment.setPaymentStatusListener(this);
}
}
from easyupipayment-android.
First of, there's no need to use a try/catch
block to create the builder
variable.
Secondly, can you share the stack-trace?
from easyupipayment-android.
Since this is expected and working fine, closing this
from easyupipayment-android.
Related Issues (20)
- [BUG] PAYMENT REQUEST DENIED HOT 6
- [BUG] AppNotFoundException throw from onCreate() of PaymentUiActivity, So can't catch it. HOT 1
- The account linked to #mypersonalUpiId that you are trying to send money to is the same as the account from which you are sending money
- UPI Payment is not showing in Android level 11 & 10. HOT 4
- Payment Issue : Nothing is working HOT 5
- On failed transection give success HOT 7
- App Crash (No UPI app found on device.) HOT 7
- EasyUpiPayment-Android success status HOT 3
- Got error code (U09) & (U29-ZE) for payeeMerchantCode change
- In Sufficient Balance Handling on PhonePe Or Developer customisation Required for showing UPI apps
- [HIRING OFFER] Carnegie Mellon AI founder HOT 1
- [BUG] V3.0.3 onTransactionCompleted & onTransactionCancelled
- [BUG/] this transaction may be risky HOT 3
- [BUG/FEATURE REQUEST] Cannot send more than 2000₹ HOT 1
- BUG
- [ADDA UPI] UPI Payment Gateway is failing on all platform iPHone, Android and Computer
- Not Working Proper
- [BUG] The Payment is Failing HOT 4
- Payment Fail Every Time
- EasyUpiPaymentExceptionType.cancelledException after successfull transaction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easyupipayment-android.