Add a library for retrieving payments
Add a library function to compute total payments and boxes sold