Good Sunday to everybody :)
I thought it was an easy question but I cannot find any clean solution.
I have succesfully implemented Paypal integration within my app, of course at the moment I am using Sandbox.
By the way now I am testing my app, and OUCH! When logging out with a user, switching to another, when purchasing something, previous paypal user data are still prompted in the Paypal embedded (and non changeable) page.
Now, I could do it the hard way: deleting all the cache dir within my app, but I am pretty sure it is a brutal solution and not so clean after all.
Any help?
Thanks in advance
There's an easy way as of today! Just use the static PayPalService.clearAllUserData() method to clear all the user's info.
Related
I have a personal access token for my Github account that I am trying to use to test an app that has to have the functionality of following/unfollowing other users. The problem for me, I am having a really hard time figuring out how I am even supposed to use my token or how to go about doing it.
I know from multiple other posts that you follow others with a PUT request on the Github API (which I can do with http requests in java), but the prerequisite is that you are already authenticated. In the documentation on Github, they use curl on a command line interface (https://developer.github.com/v3/#authentication), but that is not what I am wanting to do.
I am just generally lost as to what I should be looking for on how to go about doing this right now. Any help is appreciated. Thanks!
I want to create an app for a website that I don't own, like youtube or reddit. Every time I search for help, all I keep getting is how to create a webview. I've done that but that's not what I want. I want to take the website's content and create an app with it, like create my own buttons and such. I want to convert a website into an app.
I was thinking of somehow loading the website in the background and creating activities/buttons/intents that basically do what the webpage does but I don't know how to go about that or if there's a better way.
Thank you in advance.
Please let me know if clarification is needed.
Alright i got -3 votes for some reason and it has been 12 hours since i posted this question, i'm guessing the question has been consumed by the abyss of questions by now.
I made a reddit post and got some responses:
one user:
The term you’re looking for is “web scraping“ or “site scraping”. I think that’s probably what you need to research before you’re ready to handle how to make that into an app.
That’s a good starting point and once you have the content from scraping, making the app is no different than any other app.
second user:
If the website has a public (or private) API, you can use your buttons and networking calls to their API to build your client app. You are building a "YouTube client" in this case using the YouTube API.
If they dont have an API and you don't want to display their website, what you are doing is trying to reverse engineer their website and hijack the UI which is not a good practice and may even be illegal depending on the site and terms.
third user:
#second user is right on the money, but one thing I'll like to add is, the goal is to get data off of the website so that you can use in your app. An API is one (convenient) way of doing that but others are,
RSS or similar feed content (prefer this if there website supports)
HTML scraping
The above two will require you store the data somewhere else (and possible expose an API instead) because of technical reasons: you don't have access to older entries in RSS feeds and it's atrocious to keep on scraping everytime you need to access the website data. They can be done on the client (mobile app) but are best done on a server. This means you might need to get your hands dirty writing server code but you don't have to.
/thread
I'm going to do research on website scrapping and APIs to see which route i should go.
Hopefully this helped someone else.
I have done some researching but I haven't find a clean explanation of how it all work.
I would like to know how does applicationa like Instagram, Wordcrack (online game), AirBnb and many other app have tier "Login with Facebook" done?
I currently work on the Java REST services that backups up an iOS app.
If some one already has done a similar things in their app/server I would really appreciate some help
I'm not looking for ready to use code answer but more of a general idea of the architecture to achieve this.
thank you!
I've done it in JavaScript, but the principle will surely be the same.
You have an API, provided by facebook. There are some information there :
https://developers.facebook.com/docs/apis-and-sdks#third-party-sdks
And, more than that, you have declare your own app on facebook. This has, for me, 2 goals :
provide the url of your server, so when you'll call facebook with the
login information, he will know where to redirect
specify the access your app need.
When i've begun to watch this, i've discovered satellizer. I think that's a good entry point to understand how it works with an example :
https://github.com/sahat/satellizer
Hope this help.
Supporting login through their website (Facebook,Twitter,Instagram etc) allows a user to use his already active profile to signup to a portal or an app. This way a user experience is enhanced and having to have separate login credentials for different apps and sites are reduced.
A developer utilizes the APIs or SDKs that these social networks expose to let you integrate it in your app and provide an easy sign up process to your users.
So,
I am trying to make an android app for my client who has a e-commerce website. For that I have to get his details from his dashboard and somehow fetch it to graphs in the app.
For this I have to make him login, and then get his details. But till now, I am not able to get my work done. Initially I tried Login to his website through java, but failed. Then I tried Json Api as wordpress plugin , but I was told its not secure. Then I move on to phoneGap, and the login part is done.
But,now the problem is. After he login, I was not able to redirect him to my app. To overcome this, I thought to open page in IFrame and use some logic through Js/JQuery, But then Another thing come in my way as "Same-Origin-Policy". To get through this, I tried to use JSONP, which till now, I am unable to use. I don't know which PHP file to change in wordpress or what. I am now feeling so much lost, and don't know how to get this work done.
If any one could t ell me whats the best way to do this, and if please provide with explainable snippet.. It would be very much helpful
Thankyou
I want to integrate paypal in my java web application. I saw that they offer many methods to accomplish this. But i want my visitors to remain on my site only. My friend told me that Paypal offers webservice. But i can't seem to find any documentation on Paypal site. If anybody could help me with this, i would be really very grateful. Please offer me the relevant links on Paypal where i could read and get my things done.
Secondly, my friend also told me that we need to give location to paypal where my visitors would be redirected once paypal payment is complete. But i am confused. I am working on localhost. How would Paypal know about my localhost?
I have already created my sandbox testing account. What should be my next step. Please explain me in detail. I don't know anything about Paypal. Once i created a demo application of Express checkout where they give a simple button of Pay Now and on clicking on it shopping cart etc appears. But now i want my visitors to stay on same website.
Thanks in advance :)
Website Payments Standard:
https://www.x.com/community/ppx/wps
PayPal Tools for Developers:
https://www.x.com/community/ppx/dev-tools