Troubleshooting
Common issues and step-by-step resolutions when configuring or operating the Magento 2 QuickBooks Connect extension.
1. OAuth 2.0 Connection or Authorization Failure
Symptoms
Clicking Connect results in an Intuit redirect error page, "Invalid Grant", "Redirect URI Mismatch", or fails to open the company selection modal.
Resolution Steps
- Verify that your website uses an active HTTPS SSL certificate (
https://). Intuit OAuth 2.0 strictly blocks plain HTTP redirect URLs. - Log in to Intuit Developer Portal and verify that your Redirect URI is configured exactly as:
https://yourstore.com/quickbooksconnect/oauth/oauth2 - Verify that Account Type in Magento Admin (Stores > Configuration > Webkul > Magento Quickbooks Connect) matches your key environment:
- Select
Developmentif using Development Keys with a QuickBooks Sandbox account. - Select
Productionif using Production Keys with a live QuickBooks Online account.
- Select
- Flush Magento cache:
php bin/magento cache:flush
2. Orders Not Exporting Automatically to QuickBooks
Symptoms
New orders placed on the storefront are not appearing as Sales Receipts in QuickBooks Online.
Resolution Steps
- Check Stores > Configuration > Webkul > Magento Quickbooks Connect:
- Verify Enable is set to
Yes. - Check Sales Receipt Create On setting:
- If set to
Invoice Create, orders will not sync until an invoice is generated in Magento. - If set to
Order Complete, orders will not sync until status changes toComplete.
- If set to
- Verify Enable is set to
- Ensure Magento cron runner is active on your server:
php bin/magento cron:run - Inspect log files under
var/log/for error tracebacks:var/log/quickbooks.logvar/log/system.logvar/log/exception.log
3. QuickBooks SDK Class Not Found Exception
Symptoms
PHP error or exception thrown: Class 'QuickBooksOnline\API\DataService\DataService' not found.
Resolution Steps
- Run composer to install the required Intuit SDK:
composer require quickbooks/v3-php-sdk:6.2 - Re-compile dependency injection and flush cache:
php bin/magento setup:di:compile php bin/magento cache:flush
4. Tax Calculation Mismatch / Order Export Rejected
Symptoms
Manual or automatic export fails with message: "Tax code mismatch" or total tax amount in QuickBooks differs from Magento order invoice.
Resolution Steps
- Go to Connect > Map Tax Rate in Magento Admin.
- Select the matching QuickBooks Tax Code for each Magento store tax rate.
- Click Save Tax Mapping.
- Re-export the order from Connect > Map Sales Receipt.
