Posted: 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. |
|
Do you have a resolution? |
|
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? |
|
Following up again to see why the EE plugin has a glitch with the Square auto token refresh. |
|
Hey there, Ted |
|
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? |
|
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! |
|
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. |
|
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. |
|
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. |
|
This reply has been marked as private. | |
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.
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. |
|
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? |
|
This reply has been marked as private. | |
Thank you! I’ve uploaded the version you sent. I will watch for any issues on June 7th. Hopefully Square will reauthorize. |
|
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.” |
|
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 What do you see? |
|
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. |
|
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? |
|
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. |
|
This reply has been marked as private. | |
Any idea why that hook does not show up in our cron jobs? Were you able to view the screen print? |
|
Any resolution for this issue? |
|
Any solution? |
|
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. |
|
I haven’t gotten a response about this issue for a month. Do I need to create a new support ticket? |
|
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.