totalAmount -> totalAmountCents
store file uploads properly

but I need to write tests for this