Adding credit request/response and tests
Modified so transactions require an id