Support

Home Forums Event Espresso Premium adding a surcharge on Square gateway

adding a surcharge on Square gateway

Posted: January 11, 2022 at 8:40 pm


careertraining

January 11, 2022 at 8:40 pm

Previously (discussed in this thread) I built a plugin to add a surcharge to credit card transactions using the WP Gateways integration for Square. I had problems with that gateway and switched to the EE square gateway.

I based the previous version on this example: https://github.com/eventespresso/ee-code-snippet-library/blob/master/checkout/bc_add_cart_modifier.php

Starting again with that example code, I’m not able to get a surcharge to apply. Are there differences in the EE Square gateway that would necessitate changes to the surcharge example code?

Thanks


Tony

  • Support Staff

January 12, 2022 at 3:16 am

Hi there,

The payment method slug will be different, which means THIS LINE nees to be updated.

The slug for the EE Square payment method is squareonsite.


careertraining

January 12, 2022 at 6:24 pm

I’d already done that. It’s concerning when this happens, but it just started working. I’ll call it good for now.

You must be logged in to reply to this support post. Sign In or Register for an Account

Event Espresso