title: Quickbooks Online Error PHP
body: <p>When I attempt to connect to QBO via the Consolibyte package I downloaded I get an error.</p>
  
  <blockquote>
    <p>Error Code: internal_error</p>
    
    <p>Message: Error getting application from request token</p>
    
    <p>You can contact us for further assistance. Error
    Id:ixnkryec2iu513ef45f3f5xv-12940655</p>
  </blockquote>
  
  <p>I have set up the <code>config.php</code> file as directed in the instructions and even got to the point of authorizing the application with Quickbooks but now when I navigate to the page it indicates that I am not logged in and when I click the "Connect to QuickBooks" button on the <code>index.php</code> page I get the error above. I'm not familiar enough with the process to know where to start troubleshooting this problem and any help would be greatly appreciated.</p>
  
  <p>Link: <a href="http://production.technology-architects.com/unleashed_new/quickbook/docs/partner_platform/example_app_ipp_v3/" rel="nofollow noreferrer">http://production.technology-architects.com/unleashed_new/quickbook/docs/partner_platform/example_app_ipp_v3/</a></p>
  
  <p>example_app_ipp_v3/config.php code</p>
  
  <pre><code>require_once dirname(__FILE__) . '/../../../QuickBooks.php';
  $token = 'f5ddd229b1d19b4153b8218b08b97897050f';
  $oauth_consumer_key = 'qyprdYvvyNLq1om6FSw0xLebctZEAz';
  $oauth_consumer_secret = 'KCLYZRgZ4LnHUB35AzvylxnH6c8CDCyjhva8I9Gp';
  $sandbox = true;     // When you're using development tokens
  $quickbooks_oauth_url = 'http://production.technology-architects.com/unleashed_new/quickbook/docs/partner_platform/example_app_ipp_v3/oauth.php';
  $quickbooks_success_url = 'http://production.technology-architects.com/unleashed_new/quickbook/docs/partner_platform/example_app_ipp_v3/success.php';
  $quickbooks_menu_url = 'http://production.technology-architects.com/unleashed_new/quickbook/docs/partner_platform/example_app_ipp_v3/menu.php';
  $dsn = 'mysqli://myusername:mypassword@localhost/databasename';
  $encryption_key = 'bcde1234';
  $the_username = 'DO_NOT_CHANGE_MEddd';
  $the_tenant = 'sdfaswrqwerqwr';
  if (!QuickBooks_Utilities::initialized($dsn)){
      QuickBooks_Utilities::initialize($dsn);
  }
  $IntuitAnywhere = new QuickBooks_IPP_IntuitAnywhere($dsn, $encryption_key, $oauth_consumer_key, $oauth_consumer_secret, $quickbooks_oauth_url, $quickbooks_success_url);
  if ($IntuitAnywhere-&gt;check($the_username, $the_tenant) and $IntuitAnywhere-&gt;test($the_username, $the_tenant)){   
      $quickbooks_is_connected = true;
      $IPP = new QuickBooks_IPP($dsn);
      $creds = $IntuitAnywhere-&gt;load($the_username, $the_tenant);
      $IPP-&gt;authMode(
              QuickBooks_IPP::AUTHMODE_OAUTH, 
              $the_username, 
              $creds);
      if ($sandbox){
          $IPP-&gt;sandbox(true);
      }
      $realm = $creds['qb_realm'];
      $Context = $IPP-&gt;context();
      $CompanyInfoService = new QuickBooks_IPP_Service_CompanyInfo();
      $quickbooks_CompanyInfo = $CompanyInfoService-&gt;get($Context, $realm);
  } else {
      $quickbooks_is_connected = false;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ckLrb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ckLrb.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/C3nc9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C3nc9.png" alt="enter image description here"></a></p>