Hope that helps 3-legged OAuth is the only way to generate QBO tokens. Either you have to persist the tokens(as you mentioned) or you need to let your app user go through the OAuth flow(using 'Connect to QB' button). In the 2nd approach you can store the tokens in the session.
it should still fix some issue Our experience has been that you actually have to create an object, and return that. e.g.:
public function __construct($ticket)
$this->authenticateResult = array($ticket, 'none');
return new QuickBooks_WebConnector_Result_Authenticate($ticket);
How do I authenticate/authorize myself to Quickbooks API?
wish help you to fix your issue Ok, I am using Keith Palmers excellent classes for this, located here: https://github.com/consolibyte/quickbooks-php, and the Web Connector is working fine, but only when I have Quickbooks open and click on File->Update Web Service within the Server the Web Connector is working. Once I log out of the Server, or even close the Quickbooks application, the Web Connector no longer works. I am running Quickbooks Enterprise, and have read that I need to send a response from the authenticate() method, which I'm guessing that the Web Connector server (https) needs to send, which is the from within the .QWC file. The only problem is, I don't fully understand how Keith's code is working and not even sure where the authenticate() method is being ran at. And it could be possible that this option is already available in a Class and/or Function/Hook that seems to be so many of within the QB Classes. , Not sure where to set Full Path of QBW file here.
UPDATE quickbooks_user SET qb_company_file = 'C:\path\to\your\file.QBW' WHERE qb_username = 'your-web-connector-username'
Quickbooks Error: Business Validation Error: This account number already exists in the QuickBooks chart of accounts