Support

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

Viewing 8 reply threads


MAGentix

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:

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

body:
code: AuthenticationFailed type: INPUT

response: code 401
message Unauthorized

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

status_code 401
protocol_version 1.1
success
redirects 0
url https://api.intuit.com/quickbooks/v4/payments/charges

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


Josh

  • Support Staff

February 12, 2019 at 9:55 am

Hi,

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.


MAGentix

February 14, 2019 at 8:49 am

Hi,

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.

Thanks.


Josh

  • 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?


MAGentix

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.

Thanks.


Josh

  • 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?


MAGentix

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.


Josh

  • 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.


MAGentix

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.

Viewing 8 reply threads

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.

Event Espresso