Save a credit card and see the details
Application Type

Hi! I am currently developing an e-commerce on reactive web app, but i am having some issues...

 How can i save and list the credit card that someone had introduced? 


could you please provide some more details about the use case, what are the requirements.

Hi João,

You can create a CreditCard table that will store the credit card information's.  One user can use multiple cards so you need to create junction table as UserCreditCard that contains UserId and CreditCardId.

While placing order you can ask user to enter the credit card information's or you can use any third party service for credit card validation and payment. Once validated you can save that into CreditCard and UserCreditCard table.

Please make sure that you are following PCI Rules for Storing Credit Card Numbers in a Database.



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.