Is it better for the person to save the number, expiration date and cvv of the card, in the app itself (sqlite) or in the web database?
Is it better for the person to save the number, expiration date and cvv of the card, in the app itself (sqlite) or in the web database?
There are advantages and disadvantages to each approach:
1- Save to APP:
Advantages: It is not necessary to retype information as it is saved directly to the mobile phone; Partially offline operation.
Disadvantages: Changing devices means retyping the data; Insecurity because the data is accessible to anyone who uses the cell phone; Cellular memory consumption for data storage
2- Save to WEB:
Advantages: It is not necessary to retype information as it is saved to a remote server; It does not use internal memory of the cellular to store the data; Security due to the storage of the information in a remote system associated to the user and not to the cell phone; You can use the app on any mobile device.
Disadvantages: Application only works with Internet access; Need to register information in a server registry; Latency when loading information from a remote server; Need authentication to gain access to remote server information.
You need to consider which disadvantages can be pitted depending on the purpose of the application. I usually choose to save on the WEB since nowadays virtually every application requires access to the internet.
Response
Conclusion
It is better to save the information in a web database by assuming and guaranteeing Information Security commitments with the client. And there is no way to save the credit card data in SQLite because to make a transaction or any other query using the credit card you need access to the Internet.