jsqu99 / emporium

An e-commerce framework using Elixir/Phoenix/Ecto
Apache License 2.0
32 stars 3 forks source link

adds first cut of an ERD doc #3

Closed jsqu99 closed 9 years ago

cas27 commented 9 years ago

PayPalPayment, maybe change this something more generic to allow for storage from any other number of 3rd party express checkout systems?

jsqu99 commented 9 years ago

@cas27 I thought for sure I responded to your comment but I don't see it anywhere :-(

Yeah that payment stuff I'm happy to have lots more conversations about. Do you have any ideas on how the generic schema woudl look? I was thinking that some gateways would have different things we'd store (gateway_token_id, gateway_customer_id, gateway_payment_id, etc).

cas27 commented 9 years ago

@jsqu99 Hard to say on a generic.

Im thinking to start a transaction_id (w/e unique identifier that gateway uses) since that would be the most important info and pretty standard.

Then perhaps a reponse:text as a catchall for the unknown. Or perhaps JSON store depending on the underlying DB.

romul commented 9 years ago

@jsqu99 Payments system is ok in Spree. So we could use the same schema here.

jsqu99 commented 9 years ago

@romul You are probably correct on the payments comment. I'm going to just merge this giant ERD in and let's keep improving it. Sound ok? If I wait to get it perfect, I'll never get it in the codebase :-)