Posted: December 10, 2021 at 1:30 pm
All checkouts using the Square payment gateway are showing these errors: An invalid registration was received The charge goes through. What could be causing this? This is a $1 test event, I’ll refund if you test it: gateway is currently hidden on payment screen, this reveals the option: jQuery(‘#ee-available-payment-method-inputs-square-lbl.tiny-lbl’).attr(‘style’, ‘display: inline !important’) |
|
Hi there, Looking at the text in the background of your screenshot it looks like your getting the ‘Nothing in your event queue error’ and those notices are thrown when EE can’t find a registration/transaction based on the current info it has, be that the query string, session data etc. So, the first thing that comes to mind is caching. I can see on the sites headers there’s caching enabled, have you excluded EE’s critical pages from that cache? https://eventespresso.com/wiki/setup-nocache-exclusion-rules-event-espresso/ (Depending on what options you have with your host you may need to contact them and have them add the exclusions for you) |
|
Side note, it is against most payment providers TOS to run ‘live’ payments as test payments. Square has the option to connect to a sandbox mode (and enable debug mode in the payment method itself) which allows you to run payments without actually charging cards. It behaves in the same way as ‘live’ without the need to refund payments. |
|
I’ve tested with Siteground’s caching disabled, which made no difference. I’ve tested quite a bit in sandbox mode as well, and I actually get a 500 error that points to the Square gateway plugin. Not sure why this isn’t happening in production mode, but I’ve tried logging the same points and it just behaves differently.
|
|
Oh, you’re not using the Square payment method from Event Espresso, that looks like the WP Gateways payment method. Event Espresso’s Single Page CheckOut process (SPCO for short) basically builds out the data/objects and then calls the relevant payment method passing them those objects to do whatever it does during payment processing so those errors are from the payment method itself rather than EE. You’ll need to contact WP Gateways to investigate this as we don’t provide support for plugins/add-ons that we did not build. |
|
I’m talking to them too. As I said, the errors are completely different depending on the gateway setting. |
|
Ok, but again, the payment method (in this case WP Gateways Square) is what loads the information on those pages and the payment method can basically do whatever it wants based on its own settings/code. |
|
I see that EE has just released a 1st-party Square integration. Perhaps this is the answer to our problems. |
|
Another user sent me a copy of the WP Gateways payment method to check into a different issue (promotions) so I ran a couple of test payments on my account to check this (the payments I made all worked fine and displayed the thank you page as expected). Looking over the code you’ll get the above if there is an issue with the communication between your server and Square, or if for some reason they don’t return a successful response based on the values that went to Square. This is something WP Gateways need to investigate further as it looks like an issue with the payment method rather than EE.
Yes, we do now have our own integration with Square: https://eventespresso.com/2021/11/accept-event-payments-with-square/ It’s a different integration type than the WP Gateways one in that it keeps you on-site but is still technically ‘offsite’. |
|
The support post ‘checkout is successful but errors occur every time’ 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.