check error results from fetchAuthorizationInformation() #105

merged 2 commits into from May 28, 2012
Commits on May 28, 2012
  1. authorizeUrlMethod() checks err returned from fetchAuthorizationInfor…

    evanp committed May 28, 2012
    We weren't checking the err response before. This patch adds a quick check and a call to the authorize_provider if there's an error.
  2. Also check intermediate error for fetchAuthorizationInformation()

    evanp committed May 28, 2012
    We were also skipping over the intermediate error from the provider's
    fetchAuthorizationInformation(), which will cause an (incorrect) error
    about the provider interface.