title: How to get Authorize.net response in WooCommerce Authorize.net AIM Gateway
body: <p>I'm using <a href="http://docs.woothemes.com/document/authorize-net-aim/" rel="nofollow">WooCommerce Authorize.net AIM Gateway</a> in WP 4.0.1</p>
  
  <p>it doesn’t tell specifically what the error is.  Instead it gives you a generic <strong>“An error occurred…”</strong> error and the user doesn’t know for sure what is wrong and what to re-enter.</p>
  
  <p>OR</p>
  
  <p><strong>An error occurred, please try again or try an alternate form of payment</strong>
  But not telling the actual cause of error.</p>
  
  <p>We have contacted WooCommerce and the vendor SkyVerge and asked about this.  SkyVerge said they are working on a new version that does a better job with this.  But, those changes are at least a month away.</p>
  
  <p>So I want to grab the response code that Authorize.net returns and show the proper message to end users.</p>
  
  <p>Like <a href="http://developer.authorize.net/tools/responsereasoncode/" rel="nofollow">here</a> Authorize.net is returning.</p>