defined contract for response/error
response format and error handling for rocket gate and authorize.net