php - Is it good to have two separate tables in database for user information and other for Paypal user? -


i'm new programmer. i'm working on project need integrate paypal in website.

i'm confused: why saving user information twice in database? first collect information user , through paypal button.

in general, want have information once in database. however, there may case want separate out data. example, if paypal data different data given directly (first name different, etc.), might want store paypal data separately. however, if getting duplicate data, suggest merging 2 tables 1 possible. maybe create second table links user table store paypal info (paypal id or whatever else new information related account, not user).

you need consider information change. if user going change name, going ok if 2 tables merged? matter paypal if try ask jon doe , paypal expecting jonathan? not since doubt paypal doing name lookup. however, need @ these types of possibilities. need consider idea of user having multiple paypal accounts (personal , work example). in case, structure (whatever decide on) handle that?


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -