Home Forums Event Espresso Premium QuickBooks Card Authorization/Capture Error – invalid_token

QuickBooks Card Authorization/Capture Error – invalid_token

Posted: February 12, 2019 at 9:48 am


February 12, 2019 at 9:48 am

Hi there,

Over the last 12 days we have had all purchases “abandoned”. Upon testing, here is some detail:

We are using latest version of EE4 and Quickbooks Payment Gateway. When testing a purchase on the front end, after inputting payment info, this error appears in red-framed box: “An error has occurred: QuickBooks Card Authorization/Capture Error”

When looking at logs:

www-authenticate Bearer realm=”Intuit”, error=”invalid_token”

code: AuthenticationFailed type: INPUT

response: code 401
message Unauthorized

Authorization/Capture Request Error:
Bearer realm=”Intuit”, error=”invalid_token”

status_code 401
protocol_version 1.1
redirects 0

Let me know if you need more detail.
Thank you very much.


  • Support Staff

February 12, 2019 at 9:55 am


The 401 error means “Unauthorized” so you may need to reconnect your app by going to Event Espresso > Payment Methods > Quickbooks. There you’ll see a button to Connect to QuickBooks, after you click the button you’ll follow the prompts to authenticate.


February 14, 2019 at 8:49 am


When we go to do that, the button is already shows as connected. Then when we try to disconnect, nothing happens and in the console log we can see Bad Request message.



  • Support Staff

February 14, 2019 at 9:00 am

That could be caused by a plugin conflict. If you temporarily deactivate all other plugins, then go to try to disconnect does it allow for reconnecting?


February 14, 2019 at 1:28 pm

Hi Josh,

I deactivated all the plugins except for EE, but when I go to click on “Disconnect”, I see the turning gear, but it does not disconnect.



  • Support Staff

February 14, 2019 at 1:35 pm

After you click disconnect, you could refresh the page to see if it updates on the page refresh request. Also, was the turning gear not present when the other plugins were activated?


February 14, 2019 at 3:23 pm

Hi Josh, I appreciate your quick reply. I did it again and refreshed the page, but it still doesn’t disconnect from Quickbooks. I tried it with the plugins both activated and deactivated, and the same result – the turning gear appears for a few seconds, then disappears.


  • Support Staff

February 14, 2019 at 3:31 pm

It sounds like it’s not a plugin conflict. So one other possibility would be a theme conflict, which could be ruled out by temporarily switching to another theme. If this is a live site, you could use the theme test drive plugin to test a default theme while on the Quickbooks settings page.

If you can get the exact error message from the console (the one that said bad request) that may also be helpful.


February 15, 2019 at 7:27 am

Hi Josh, My programmer installed the test drive plugin and changed the theme, but the issue still persisted. He looked at it in more detail and found that it was actually stuck on getting the access token values from the database.

The access token was saved, but in QB it was changed. Maybe due to some kind of Cron job fail and it was not updated. So, when the plugin tried to connect QB with that access token saved in the database, it failed with an error, “invalid token”. He removed the token from the database and reconnected the plugin, and now it works fine.

Thanks for all your help on this.

The support post ‘QuickBooks Card Authorization/Capture Error – invalid_token’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  MAGentix 6 months, 1 week ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!