Posted: 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: body: response: code 401 Authorization/Capture Request Error: status_code 401 Let me know if you need more detail. |
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. |
|
|
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. |
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? |
|
|
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. |
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? |
|
|
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. |
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. |
|
|
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.