Posted: March 28, 2022 at 12:57 pm
After a previous issue where the Squareonsite gateway kept needing to be reconnected, I created a monitoring script to verify that the gateway issue hadn’t happened. I thought about creating a wpcli cron script to do this, but espresso_registrations doesn’t appear to be visible to wpcli as a CPT. Why not? What would you do? |
|
Hi there, Have you had any more issues with the Square payment method needing to be reconnected since updating to the latest version?
Does the script submit details for the attendee information step at all? Once a registration makes it past the attendee information step, Event Espresso will not remove it.
No, not currently. We do have a cleanup script running on WP_CRON to remove ‘junk’ transactions (and their related registrations) which runs once an hour. However, EE will only consider a transaction to be junk if it has a status of failed, which will only be the case if the the attendee information step was not completed.
Whilst I can check into this, I don’t recommend you do this yourself manually, if you are set on doing so, take a look at how |
|
I haven’t needed to reconnect the Square gateway since the plugin update. Still, I want to be notified if any issues arise in checkout. Yes, the script submits a page of attendee contact/address info. Perhaps there’s a way to set a transaction as Junk when the contact info matches test values? |
|
You could, but you’ll be muddying what EE considers junk transactions there so the additional queries used to clear related data ma not work. We have a filter around the query args passed in that function:
So you can change the query using that, we some details on how to pass additional query params HERE. Thats within |
|
The support post ‘how to clean up old abandoned carts’ 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.