-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link error when using PayPal app #28
Comments
I just tested this. You are right, If I choose Paypal and then the Browser, a 404 page is shown. I am using the official links from PayPal's developer documentation, so not sure how to fix this. If anyone has an idea I am open for pull requests! |
String paypalLink = "";
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(paypalLink));
intent.addCategory(Intent.CATEGORY_BROWSABLE);
// get default browser
Intent browser = new Intent(Intent.ACTION_VIEW, Uri.parse("http://"));
ResolveInfo resolveInfo = getPackageManager().resolveActivity(browser, PackageManager.MATCH_DEFAULT_ONLY);
if (resolveInfo != null) {
// set package to browser
intent.setPackage(resolveInfo.activityInfo.packageName);
}
startActivity(intent); |
I now force the intent chooser in d743327 |
Hi,
Thanks.
I ended up always using the "PayPal.me" link in a browser.
I'll check if now is possible to open the app.
Il 05 mar 2018 11:02, "Dominik Schürmann" <notifications@github.com> ha
scritto:
… I now force the intent chooser in d743327
<d743327>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACy9Dgj5zAe2_FjDepRLtE0VjdcrdzGKks5tbQ0YgaJpZM4GeBbE>
.
|
I used to have a paypal option in my apps, reading the google support information they say that web cannot open a Paypal link a WebBrowser requesting for donations because can be used for tricking user to donate an amount they don't agree with. So, after some days trying I figured a way around. Easy instead of launching Paypal Fragment to manage Paypal just command your app to open the phone default WebBrowser in your paypal.me link. I'll leave an example below.
Hope it help. It works for me |
Yes that's exactly how I'm doing: Thanks :) |
Hi,
it seems that with the PayPal official app installed, when prompted to choose a "browser", if you click on it, the PayPal app redirects anyway to the browser but the page gets a 404 error.
Instead, if you choose a browser in the app chooser, the link works and one can log in and make the donation.
The text was updated successfully, but these errors were encountered: