Home › Forums › Event Espresso Premium › adding a surcharge on Square gateway
Posted: January 11, 2022 at 8:40 pm
EE4 Personal License
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?
January 12, 2022 at 3:16 am
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.
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
Updated by careertraining 2 weeks ago ago
Tagged: surcharge, SQUARE