Fix bug in payment creator
Got tests working