Where to save a credit card number? - database

If you are making a webapp with online purchases and you want to be able to save a user's credit card info so they don't have to type it in again, where is it stored? Do you generally store that encrypted on the database? Or is it best to save it in an encrypted browser cookie? Just curious.

Related

Best way to store large amount of data on device when internet connection is lost

Hi I was really hoping to get some guidance with React Native. I'm currently building an App using expo. It's a two part question.
was how to go about storing data when the internet connection is lost. In Africa, internet connection can be lost at any time.
Currently, once the user is logged in, I am saving data into state using Context API. I save my access token on Secure store and some user data on Async storage. However these dont store large amounts of data. How reliable and efficient is SQLite and realm and would you recommend any other option? Realm is not supported on Expo Go however it is seeming to be the best option.
and 2) Supposing I used SQLite or any other option to store data on the phone, how to i go about updating the data on the phone with the newest data on the server once internet connection comes back. I was thinking to overide the entire data?

Save data from firebase real time database to android local database (SQLite)

I wanted to save all my data from firebase database into a local database in (JSON format only) for my application to access it when not connected to internet. It consists even images in it along with string form of data.
Firebase allots very less space for offline mode saving data into the application hence can't use it.
I want data to be first saved in my local database and then to be retrieved into the recyclerView of my application.
Moreover I want to save login details as well as other user specific details required to keep the application function without internet into particular user's login.
Searched for answers but no reliable or step by step guide I encountered.
Are these things possible? What should I do ? Please guide.

Storing data from Facebook's Graph API

For the past two days, I finally was able to understand how to extract data from Facebook's Graph API.
How to use Graph API to get user's total friend count [JavaScript]
Awesome, right? Now, for the next part.
I want to be able to store this data so that it can be publicly displayed on a user's profile within the application I am developing.
Here is the flow that I am thinking:
User goes to create an account on my application
User is asked via OAuth to pull in their Facebook data such as their profile picture, friend count, etc.
Their data is stored and synced to be always up-to-date [this is what I am trying to figure out]
The data stored is publicly displayed on their profile (such as their friend count)
I never went back to this - but from my understanding now versus what I knew back when I posted this; all one would need to do is store the data in a database so it can be spit back out- and it would just be associated to the user.

FB Application with custom DB

2 quick question:
is it possible to build a Facebook application saving user profile informations (name, surname, phone numners, ecc.) on a external custom database (so, not FB database), obvioulsy after user approval, etc.
even if the answer of the above question is "no", do you know a way to pull out user profile information for all users who use the FB application and formally agree to give their personal information within the app? I would like to know if it is possible to do that both from a technical pov and legal pov
That´s what a privacy policy is for. In general, you should only store data after telling the user exactly what you store, what you do with the data, how long you store it and how he can get his entries deleted from your database.
Btw, you can´t get the phone number. About the technical way, please go to the Facebook docs: https://developers.facebook.com/docs

how to create a server which can reply to a SMS from cell phone and search relevant information back to that number?

i want to develop a system in which we can store our passwords of different accounts or ATM etc thought a website in a database (cell number will be the primary key)to a server. this information need to be accessed by the user from its cell phone by sending a message and its should reply the saved password to that number back. now problems are 1) how to set up a server? 2)how to send a message from cell to pc? 3) how to reply back from pc to cell?
I think your biggest problem is doing this securely. If someone forgets their password, a safer alternative is to have them reset it after confirming their identity.
However, if you want to look into this further, a quick Google search yielded this result: http://research.microsoft.com/en-us/downloads/2bdeb3c6-9945-4804-a9bc-0d53704d35da/

Resources