Support

Home Forums Event Espresso Premium Square Oauth Token Expires Regularly

Square Oauth Token Expires Regularly

Posted: May 8, 2023 at 10:02 am

Viewing 25 reply threads


mkreik

May 8, 2023 at 10:02 am

I wrote to you about this issue and the support request is now closed to replies even though it wasn’t resolved. We regularly find out the Square Oauth token expired when we get emails from customers who cannot process a transaction. We cannot have this happen as it make the site unreliable.

In my previous support post I let you know that Square had disconnected for another client of mine using a different plugin, and I was concerned that the Square connection isn’t reliable. We also have WooCommerce with Square on the site so I don’t know if that causes issues. We have MFA on the connected account, and I was told by EE that shouldn’t impact the connection. In my previous post you asked if I would be willing to work with you since you cannot replicate it, but I never heard back from you. We need the resolved as quickly as possible.


mkreik

May 10, 2023 at 11:52 am

Do you have a resolution?


mkreik

May 15, 2023 at 11:09 am

It’s been a week since I submitted this support request. Could you let me know how I can make sure that the Oauth token refreshes every 30 days and why that isn’t occurring in our case?


mkreik

May 22, 2023 at 10:37 am

Following up again to see why the EE plugin has a glitch with the Square auto token refresh.


Ted Karlsalr

May 23, 2023 at 9:39 am

Hey there,
We have the same issue here. I check the status of Square everyday and it is ver annoying!

Ted


mkreik

May 23, 2023 at 4:02 pm

I’m glad we’re not the only one, but Event Espresso is not responding to my support posts. I have several unanswered. Have you had similar issues with EE support on this issue?


Ted Karlsalr

May 23, 2023 at 5:49 pm

Actually, the support team is awesome, but in the case of Square plugin, I think they don’t have any solution so far. I am waiting for them to fix the issue.

I really like the Square plugin but getting disconnected every now and then is annoying to say the least!


Garth

  • Support Staff

May 24, 2023 at 1:01 pm

We’re not missing this. We have not been able to reproduce this so it’s become really difficult to do debug. If you have any more information or hints on what might be causing this please let us know. As such, this is already on the list for our development team to review to see if we can make the token system more stable.


mkreik

May 24, 2023 at 3:31 pm

That would be great. I believe ours will disconnect on June 7 or 8 since it disconnects around every 30 days. You previously asked me if I wanted to help with the debug process. How can I do that? I thought I would turn on the debug mode for the Event Espresso Square plugin, but when I set it to Yes and then tried to reconnect to Square I get an error about using a sandbox.


mkreik

May 24, 2023 at 3:36 pm

As far as insight, I worked with someone who has the WooCommerce Square plugin, and it would regularly disconnect. The person had to stay on top of the plugin updates to prevent it and even then they would need to watch for failed transactions. I believe Square is the unstable part of this, not EE. The site I have an issue with right now has both the EE Square plugin and the WooCommerce Square plugin. I don’t know if one is causing the other to fail or if it’s unrelated to it.


mkreik

May 24, 2023 at 3:37 pm

This reply has been marked as private.


Tony

  • Support Staff

June 1, 2023 at 12:27 am

How can I do that? I thought I would turn on the debug mode for the Event Espresso Square plugin, but when I set it to Yes and then tried to reconnect to Square I get an error about using a sandbox.

That option is basically for testing transactions, it connects to your Square ‘Sandbox’ account to allow you to make test card payments and wont help debug this particular issue.

I don’t know if one is causing the other to fail or if it’s unrelated to it.

Hmm, possibly but we’ve had a couple of reports of this (although not all Square users) and those aren’t using both.

In response to your private reply, yes, that is possible but again you are not the only person affected by this so whilst that could be a contributing factor I don’t think it’s the main cause currently.

We’ve made some changes within the Square payment method around how the OAuth token refreshes to see if that helps with this. I can send you the latest version of the add-on to install and see if it helps, the biggest problem with testing this is we need the oAuth token to expire to confirm the refresh works. We can obviously force those conditions locally to test it but that doesn’t rally test real world scenarios.


mkreik

June 1, 2023 at 2:57 pm

Thanks so much for getting back to me, Tony. The last time the token didn’t reauthorize was May 8th so I believe it will happen again on June 7th. Yes, send me the latest version or a link to it, and I will install it and see if it fails to reauthorize on June 7th. Is there anything you need from me prior to that?


Tony

  • Support Staff

June 2, 2023 at 7:38 am

This reply has been marked as private.


mkreik

June 2, 2023 at 1:14 pm

Thank you! I’ve uploaded the version you sent. I will watch for any issues on June 7th. Hopefully Square will reauthorize.


mkreik

June 8, 2023 at 2:15 pm

It failed to reauthorize the token. I just logged into the website In Payment Method> Payment Methods and see this message,

“Authorization health check failed with error: “This request could not be authorized.” Please try to re-authorize (reConnect) for the Square payment method to function properly.”


Tony

  • Support Staff

June 8, 2023 at 4:15 pm

That’s disappointing!

Can you install a plugin such as WP Crontrol:

https://wordpress.org/plugins/wp-crontrol/

Then go to Tools -> Cron events.

Search for AHEEA_Square_oauth_health_check

What do you see?


mkreik

June 13, 2023 at 10:23 am

I’ve installed the plugin. How quickly should I expect to get search results for AHEEA_Square_oauth_health_check? Right now that hook is not found.


Tony

  • Support Staff

June 13, 2023 at 3:14 pm

You should see it straight away.

If you deactivate and the deactivate the Square add-on (not the payment method, the add-on plugin itself) does that add the Cron?


mkreik

June 14, 2023 at 12:47 pm

I deactivated and reactivated the Event Espresso – Square Payment Method (EE 4.10+) plugin, but the AHEEA_Square_oauth_health_check hook does not show up in the cron events. I have screen printed all of the AHEEA hooks that show up. I will provide the link to the screen print in a private response.


mkreik

June 14, 2023 at 12:47 pm

This reply has been marked as private.


mkreik

June 19, 2023 at 1:45 pm

Any idea why that hook does not show up in our cron jobs? Were you able to view the screen print?


mkreik

June 26, 2023 at 2:54 pm

Any resolution for this issue?


mkreik

July 3, 2023 at 11:51 am

Any solution?


mkreik

July 10, 2023 at 6:40 am

The connection failed to reauthorize, and Square is no longer connected to the site. We need to resolve this issue since it has been happening every month since we started using the EE Square plugin.


mkreik

July 12, 2023 at 10:50 am

I haven’t gotten a response about this issue for a month. Do I need to create a new support ticket?

Viewing 25 reply threads

The support post ‘Square Oauth Token Expires Regularly’ 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