Support

Home Forums Event Espresso Premium Coupon code causing payment not to work

Coupon code causing payment not to work

Posted: December 15, 2021 at 9:36 am

Viewing 14 reply threads


ambcheatham

December 15, 2021 at 9:36 am

We have coupon codes created and when trying to use them we are getting an error message –

“An error has occurred: It appears the Off Site Payment Method was not configured properly. Please try again or contact xxx for assistance. Money amount must be non-negative.”

The item is either $95 or $85 and the coupon code is only $10 off so I’m not sure what is happening but we are losing registrations because of this.

Thank you!


Tony

  • Support Staff

December 15, 2021 at 12:07 pm

Hi there,

Which payment method are you using, please?

Did this work previously and has now stopped or have you only just started using this set-up?


ambcheatham

December 15, 2021 at 2:34 pm

We use square. This has worked previously.


Tony

  • Support Staff

December 15, 2021 at 3:24 pm

I had a look over your site and the Square payment method you are using is not from Event Espresso, it looks like it’s the WP Gateways payment method.

We don’t provide support for add-ons/payment methods we didn’t create, however, you mentioned this worked previously so if you’d like to send me a copy of the Square payment method I’ll test it with a previous version of Event Espresso (v4.10.13.p).

If this is due to a recent change we may be able to patch it within core, however, I’m not aware of any changes we’ve made that would cause this. I’ll need to see the code for the payment method to be sure.


ambcheatham

December 16, 2021 at 8:49 am

I had our IT person look at it – he said to tell you that the payment method is working, just not with the coupon codes for some reason. Everything is enabled. Does that help at all?


Tony

  • Support Staff

December 16, 2021 at 8:58 am

Not really no, the payment method working but not with coupon codes still points to an issue with the payment method.

The Single Page CheckOut process within Event Espresso (SPCO for short) sets up the data for the registration/transaction and passes that over to the payment method, which does all of the processing from that point on. The error you are getting is directly from the payment method (in your case the WP Gateways Square payment method) and not Event Espresso.

If you can send me a copy of the payment method I can check to see if this is a recent change.

From the version of that add-on I have I can’t see how it has ever worked with coupon codes, so when you said this worked previously, do you also mean when using fix dollar coupon codes?


ambcheatham

December 16, 2021 at 12:05 pm

I’m confused. What do you mean when you say to send you a copy of the payment method? I’m happy to send it but I’m not sure what you’re asking for?


Tony

  • Support Staff

December 16, 2021 at 12:15 pm

It looks like the Square payment method you have on the site is not the one created by us (Event Espresso), so I need to see the code for it.

First, lets confirm.

Go to Your plugins menu (Dashboard -> Plugins)

Can you see a Square payment method plugin listed there? If so add a screenshot of what you can see and post it here so I can see.

Or if easier I can take a look in the admin to confirm but will need login details:

https://eventespresso.com/send-login-details/

Up to you which you prefer.


ambcheatham

December 16, 2021 at 12:27 pm

Just sent – I think 🙂 Thank you!


Tony

  • Support Staff

December 16, 2021 at 12:45 pm

Hi there,

Looks like those credentials don’t work on the site?

To clarify, I need the login credentials for the site this is happening on, not you EventEspresso.com login credentials for here if that’s what was sent?


ambcheatham

December 16, 2021 at 1:58 pm

This reply has been marked as private.


Tony

  • Support Staff

December 16, 2021 at 2:56 pm

Hi there,

We don’t recommend posting credentials on the forum (I’ve removed them from the above) but I need to know the username used on the site to be able to log in.

Please send credentials via this form:

https://eventespresso.com/send-login-details/


Tony

  • Support Staff

December 17, 2021 at 6:06 am

Thank you, I received the credentials.

So yeah, I confirmed your using the WP Gateways Square Payment method.

I just want to clarify something here, can you confirm that the exact same registration setup worked previously?

Meaning the payment method has worked previously when using fixed $10 off coupon codes?

Looking over the code for that payment method I don’t think the above setup has/can work with that payment method as it’s handling line items as if they are all percentages.

I’ll double-check I’m following the code correct with our lead developer but currently, this looks like an issue with the payment method which they will need to address.


ambcheatham

December 17, 2021 at 7:24 am

Thanks, Tony. Yes – it worked previously. We had EE before, cancelled the system for a time and are back to using it so it was in our first round of using it that it worked – and nothing has changed since then. Let me know what you find out – we very much need that to work in order for EE to work for us! Thanks!


Tony

  • Support Staff

December 22, 2021 at 7:10 am

Hi there,

I spent some time looking into this and we haven’t changed the values within Event Espresso that are breaking the payment method, so either that payment method has changed or the Square API it uses has changed and no longer accepts the values it is sending.

The problem is from the negative number EE stores for a promotion, the Square payment method is taking that value and passing it over to Square as a negative number, which apparently it does not accept.

Now just to be clear, EE has always stored discounts as negative numbers and nothing has changed within our code for this. I confirmed this by switching back to 4.10.13.p (which is the version active on your site previously) and tested this there, same issue. This means this is either from a change in the payment method and this worked with an earlier version of that or it’s a change in the Square API but either way it’s something that WP Gateways need to fix in their add-on as it’s not from EE.

I noticed when testing this locally that the WP Gateways payment method shows an updated version is available (version 1.1.2), I don’t have a license so I can’t download it myself but I recommend updating to that version and see if that fixes it.

Viewing 14 reply threads

The support post ‘Coupon code causing payment not to work’ 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