Open Framinus opened 6 years ago
Or "cart.js", rather. I'll stick with the convention set up for the queries!
Sounds good!
The routes for credit cards and payment methods are done, other than that one issue with getting the decrypted credit card info back from the read query. i will look into that tonight!
the createCart function requires some discussion as to where the inputs are coming from. are customers logged in before they can place an order? if so, are we saving their ids as session variables to pass into the subsequent order pages? would the payment method id also be saved this way? Let's check in tomorrow!
Ohhh, good questions. I like the idea of requiring users to log in before placing an order and using sessions. I'll come over after project stand-up tomorrow to check in.
For this, should we create a new routes file called order.js? I can take this issue.