Support

Home Forums Event Espresso Premium checkout is successful but errors occur every time

checkout is successful but errors occur every time

Posted: December 10, 2021 at 1:30 pm

Viewing 8 reply threads


careertraining

December 10, 2021 at 1:30 pm

All checkouts using the Square payment gateway are showing these errors:

An invalid registration was received
A valid Primary Registration for this Transaction could not be found
Pic of error

The charge goes through. What could be causing this?

This is a $1 test event, I’ll refund if you test it:
https://careertrainingsolutionsllc.com/events/pharmacy-technician-at-cuesta-college-feb-payment-plan-2/

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’)


Tony

  • Support Staff

December 14, 2021 at 6:09 am

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)


Tony

  • Support Staff

December 14, 2021 at 6:11 am

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.


careertraining

December 14, 2021 at 3:46 pm

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.

Notice: Undefined variable: transaction_result in /public_html/wp-content/plugins/ee4-square-gateway/Square/EE-gateway.php on line 206

Fatal error: Uncaught Error: Call to a member function getTransaction() on null in /public_html/wp-content/plugins/ee4-square-gateway/Square/EE-gateway.php:206 Stack trace: #0 /public_html/wp-content/plugins/event-espresso-core-reg/core/libraries/payment_methods/EE_PMT_Base.lib.php(509): EE_Square_Gateway->handle_payment_update(Array, Object(EE_Transaction)) #1 /public_html/wp-content/plugins/event-espresso-core-reg/core/EE_Payment_Processor.core.php(262): EE_PMT_Base->handle_ipn(Array, Object(EE_Transaction)) #2 /public_html/wp-content/plugins/event-espresso-core-reg/modules/single_page_checkout/reg_steps/payment_options/EE_SPCO_Reg_Step_Payment_Options.class.php(2764): EE_Payment_Processor->process_ipn(Array, Object(EE_Transaction), Object(EE_Payment_Method), true, false) #3 /home/customer/ww in /public_html/wp-content/plugins/ee4-square-gateway/Square/EE-gateway.php on line 206
There has been a critical error on this website.


Tony

  • Support Staff

December 15, 2021 at 3:24 am

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.


careertraining

December 16, 2021 at 11:43 am

I’m talking to them too. As I said, the errors are completely different depending on the gateway setting.


Tony

  • Support Staff

December 16, 2021 at 12:47 pm

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.


careertraining

December 17, 2021 at 4:21 pm

I see that EE has just released a 1st-party Square integration. Perhaps this is the answer to our problems.


Tony

  • Support Staff

December 22, 2021 at 7:24 am

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.

I see that EE has just released a 1st-party Square integration. Perhaps this is the answer to our problems.

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’.

Viewing 8 reply threads

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.

Event Espresso