full state machine to save payments and add frontend button with backbone function, #13