Changed some names: paymentDetails -> paymentDetail, and customer -> customerID. Fixed problems.