command line tool to apply payments and credits